public static ActionResult InternalServerError(this ApiControllerBase controller) { return(new InternalServerErrorResult()); }
public static ActionResult InternalServerError(this ApiControllerBase controller, object value) { return(new InternalServerErrorObjectResult(value)); }
/// <summary> /// Returns a forbidden (HTTP 403) result with the speccifed value object included in the response /// </summary> /// <param name="controller">A Controller object this method is being called against</param> /// <param name="value">A FobiddenObjectResult object representing an HTTP 403 response with a payload describing /// why the request was rejected</param> /// <returns></returns> public static ActionResult Forbidden(this ApiControllerBase controller, object value) { return(new ForbiddenObjectResult(value)); }