public virtual async Task <int> SaveChangesAsync() { try { return(await DbContext.SaveChangesAsync()); } catch (Exception ex) { throw ex; } }
public async Task <bool> CommitAsync() { try { return(await _holidaysContext.SaveChangesAsync() > 0); } catch (Exception ex) { // // TODO: [UnitOfWork] - Disparar envio de e-mail para suporte/desenvolvimento. // throw ex; } }
public async Task <bool> CommitAsync() { return(await _context.SaveChangesAsync() > 0); }
public async Task <int> SaveChangesAsync() { return(await Db.SaveChangesAsync()); }