Пример #1
0
 public async Task <TResponse> TrySaveChangesAsync <TResponse>()
     where TResponse : CrudResponse <TResponse>, new()
 {
     return((await TrySaveChangesAsync())
         ? CrudResponse <TResponse> .Success()
         : CrudResponse <TResponse> .Error(ErrorType.DatabaseError));
 }
 public TResponse Error(ErrorType errorType) => CrudResponse <TResponse> .Error(errorType);