コード例 #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())));
 }
コード例 #2
0
 public static OperationResult Create(ServiceOperationResult result)
 {
     return(result.Success ? Create() : CreateError(result.ErrorList?.Select(x => Error.Create(x)).ToList()));
 }