public async Task <ActionResult <Hotels> > PostHotels(Hotels hotels) { await _hotel.Create(hotels); return(CreatedAtAction("GetHotels", new { id = hotels.ID }, hotels)); }
public async Task <ActionResult <Hotels> > PostHotels(Hotels hotels) { await _hotel.Create(hotels); return(CreatedAtAction("GetHotels", new { id = hotels.ID }, hotels)); }