Exemplo n.º 1
0
 public static IActionResult InternalServerError(
     string message,
     string description = null,
     IDictionary <string, object> metadata = null,
     Exception exception = null)
 {
     return(ApiResponseFactory.ToObjectResult(
                HttpStatusCode.InternalServerError,
                message,
                description,
                metadata,
                exception));
 }
Exemplo n.º 2
0
 public static IActionResult NotFound(
     string message,
     string description = null,
     IDictionary <string, object> metadata = null,
     Exception exception = null)
 {
     return(ApiResponseFactory.ToObjectResult(
                HttpStatusCode.NotFound,
                message,
                description,
                metadata,
                exception));
 }