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

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

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

            return(roomType);
        }