Example #1
0
        public async Task <IHttpActionResult> AddAsync(HotelContract hotel)
        {
            await hotelService.AddAsync(hotel.ToModel());

            return(Created(new Uri(Request.RequestUri, hotel.HotelId.ToString()), hotel.HotelId));
        }