Example #1
0
 public static ErrorResult <T> ToUnprocessableEntity <T>(this T data) => ErrorResult <T> .UnprocessableEntity(data);
Example #2
0
 public static ErrorResult <T> ToServerError <T>(this T data) => ErrorResult <T> .ServerError(data);
Example #3
0
 public static ErrorResult <T> ToBadRequest <T>(this T data) => ErrorResult <T> .BadRequest(data);
Example #4
0
 public static ErrorResult <T> ToConflict <T>(this T data) => ErrorResult <T> .Conflict(data);
Example #5
0
 public static ErrorResult <T> ToNotFound <T>(this T data) => ErrorResult <T> .NotFound(data);