F
F
fogeg2014-07-04 14:12:52
JavaScript
fogeg, 2014-07-04 14:12:52

How should errors be handled in ASP.NET MVC in WebAPI controllers?

Good day to all!

I need to somehow notify the web client that errors occurred during the execution of its request. Initially, the returned object had a field that indicated the success / failure of the request, now I want to refuse this option, since such a field is superfluous in the returned object.

How exactly do you notify the web client about controller errors?

If it's important, then requests to the controller are made from jquery.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TekVanDo, 2014-07-04
@TekVanDo

There is an example here www.asp.net/web-api/overview/web-api-routing-and-a...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question