public async Task CommitAsync() { try { await context.SaveChangesAsync(); } catch (DbUpdateException ex) { throw exceptionHelper.TranslateToException(ex); } }