Beispiel #1
0
        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));
        }