public async Task <bool> CommitAsync() { try { return((await _context.SaveChangesAsync()) > 0); } catch (System.Exception ex) { Console.Write(ex); return(false); } }
public async Task <int> SaveChangesAsync() => await Db.SaveChangesAsync();
public async Task <bool> CommitAsync() { try { return((await _context.SaveChangesAsync()) > 0); } catch (System.Exception ex) { Console.Write(ex); return(false); } }
public async Task <int> SaveChangesAsync() => await Db.SaveChangesAsync();