public async Task <DbOffice> UpdateAsync(DbOffice entity) { var result = dbContext.Offices.Update(entity); await dbContext.SaveChangesAsync(); return(result.Entity); }
public async Task DeleteAsync(DbOffice entity) { dbContext.Offices.Remove(entity); await dbContext.SaveChangesAsync(); }