Exemple #1
0
        // GET api/Hotel/Get/5
        public IHttpActionResult Get(int id)
        {
            var hotel = _hotelManager.GetById(id);

            if (hotel == null)
            {
                return(NotFound());
            }
            return(Ok(hotel));
        }