public List <HotelsRoomsModel> GetAllRoom() { List <HotelsRoomsModel> resultlist = _hotelManager.GetAllRooms(); return(resultlist); }
public HttpResponseMessage GetRooms(string sortBy = "price") { HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, _hotelManager.GetAllRooms(sortBy.ToLower())); return(response); }