Beispiel #1
0
 private static IActionResult GetError <T>(this QueryResult <T> result)
 {
     return(result.HasError
           ? ResultExtension.Error(result)
           : null);
 }
 private static IActionResult GetError(this CommandResult result)
 {
     return(result.HasError
           ? ResultExtension.Error(result)
           : null);
 }