In his course Craig sets this up with a web API end point but I’m going to use a MVC controller action method. The code here has 3 main parts:
To use this method you would simple post data that conforms the the ErrorInputModel to the address <site path>/error/record.
As you can see it simply builds up the error input model and posts it to the mvc action method.
I hope you find that useful.
I'm a professional software engineer of near on 15 years. Lucky enough to work for a small but rapidly growing company in London called Redington. They have given me the technical freedom to learn some cutting edge technologies like CQRS and Event Sourcing. Now I'm sharing what I learn here.
Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.