public virtual async Task <T> UpdateAsync(T entity)
        {
            _dbContext.Entry(entity).State = EntityState.Modified;
            await _dbContext.SaveChangesAsync();

            return(entity);
        }
Beispiel #2
0
        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);
        }
Beispiel #4
0
        public async Task <Room> UpdateRoomAsync(Room room)
        {
            _dbContext.Entry(room).State = EntityState.Modified;
            await _dbContext.SaveChangesAsync();

            return(room);
        }
Beispiel #5
0
        public async Task <Roomtype> UpdateRoomTypeAsync(Roomtype roomType)
        {
            _dbContext.Entry(roomType).State = EntityState.Modified;
            await _dbContext.SaveChangesAsync();

            return(roomType);
        }