예제 #1
0
        public async Task <ActionResult <Hotel> > DeleteHotel(int id)
        {
            var hotel = await repository.DeleteAsync(id);

            if (hotel == null)
            {
                return(NotFound());
            }

            return(hotel);
        }