Ejemplo n.º 1
0
 public static OperationResult <R> Create <R>(ServiceOperationResult <R> result)
 {
     return(result.Success ?
            Create(result.Value) :
            CreateError <R>((result.ErrorList?.Select(x => Error.Create(x)).ToList())));
 }
Ejemplo n.º 2
0
 public static OperationResult Create(ServiceOperationResult result)
 {
     return(result.Success ? Create() : CreateError(result.ErrorList?.Select(x => Error.Create(x)).ToList()));
 }