Exemple #1
0
 public static ActionResult InternalServerError(this ApiControllerBase controller)
 {
     return(new InternalServerErrorResult());
 }
Exemple #2
0
 public static ActionResult InternalServerError(this ApiControllerBase controller, object value)
 {
     return(new InternalServerErrorObjectResult(value));
 }
Exemple #3
0
 /// <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));
 }