public async Task <int> CommitAsync() { try { return(await db.SaveChangesAsync()); } catch (DbUpdateConcurrencyException) { throw; } }