예제 #1
0
        public async Task <ActionResult <Hotels> > PostHotels(Hotels hotels)
        {
            await _hotel.Create(hotels);

            return(CreatedAtAction("GetHotels", new { id = hotels.ID }, hotels));
        }