EqControllerBaseExtentions class

Contains useful expression which allows to build some specific IActionResult objects.

public static class Korzh.EasyQuery.AspNetCore.EqControllerBaseExtentions

Package: Korzh.EasyQuery.AspNetCore (targets: net5.0, netcoreapp3.1, netstandard2.0)

Assembly: Korzh.EasyQuery.AspNetCore.dll

Static Methods

Name Type Description
EqError(this ControllerBase controller, string message, int statusCode = 400) EqErrorResult An extension function which returns an action result with error status code and some additional message (in JSON) in the response body in EasyQuery format.
EqOk(this ControllerBase controller, object data) EqOkResult An extension function which returns an action result with 200 (OK) status code and some additional data (in JSON) in the response body in EasyQuery format.