예제 #1
0
        public IActionResult DeleteHotels(Guid hotelid)
        {
            var hotels = _hotels.GetHotels(hotelid);

            if (hotelid != null)
            {
                _hotels.DeleteHotelsAsync(hotels);
                return(Ok());
            }
            return(NotFound($"Hotels with id: {hotelid} was not found"));
        }