/// <summary> /// Method/Action To Display All HotelRooms /// </summary> /// <param name="page"></param> /// <returns></returns> public ActionResult GetListOfHotelRooms(int?page) { List <HotelRoom> hotelRooms = hotelManager.GetHotelRoom().ToList <HotelRoom>(); return(View(hotelRooms.ToPagedList((page ?? 1), 8))); }