예제 #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));
 }
예제 #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));
 }