public virtual async Task <T> UpdateAsync(T entity) { _dbContext.Entry(entity).State = EntityState.Modified; await _dbContext.SaveChangesAsync(); return(entity); }
public async Task <Customer> UpdateCustomerAsync(Customer customer) { _dbContext.Entry(customer).State = EntityState.Modified; await _dbContext.SaveChangesAsync(); return(customer); }
public async Task <Service> UpdateServiceAsync(Service service) { _dbContext.Entry(service).State = EntityState.Modified; await _dbContext.SaveChangesAsync(); return(service); }
public async Task <Room> UpdateRoomAsync(Room room) { _dbContext.Entry(room).State = EntityState.Modified; await _dbContext.SaveChangesAsync(); return(room); }
public async Task <Roomtype> UpdateRoomTypeAsync(Roomtype roomType) { _dbContext.Entry(roomType).State = EntityState.Modified; await _dbContext.SaveChangesAsync(); return(roomType); }