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