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