This part provides json-related controller extensions and actions results.
JsonResponseclass represents a result containing data object, errors list, message and success marker. It has following properties:
A message supplementing the result. Contains text of specified message or first error's message or
A data attached to result;
A list of errors contained in result;
The class has different constructors allowing to specify this properties in different combinations.
Working with class is performed by using controller extension methods that wrap instances of
This class represents an error to be transferred to a client.
Key corresponding to an error.
Message corresponding to an error.
These extension methods provide possibilities of sending
There are several overloads of this method taking as parameters the success marker, message, errors list and data.