public async Task <IActionResult> GetHotels(Hotels hotels) { var result = await _hotels.AddHotels(hotels); return(Created(HttpContext.Request.Scheme + "://" + HttpContext.Request.Host + HttpContext.Request.Path + "/" + result.HotelID, result)); }
public async Task <IActionResult> GetHotels(Hotels hotels) { var result = await _hotels.AddHotels(hotels); return(Created(HttpContext.Request.Scheme + "://" + HttpContext.Request.Host + HttpContext.Request.Path + "/" + result.HotelID, result)); }