public ActionResult Index() { var listType = _roomTypeRepository.GetListRoomType(new RoomTypeRequest { IsActive = -1 }); SetPageTitle("Quản lý loại phòng"); return(View(listType)); }
// GET: Admin/AdminOrder public ActionResult Index() { var models = _orderRepository.FetchListOrder(new RoomTypeRequest { PageIndex = 1, PageSize = 20, IsActive = 1 }); ViewBag.ListRoom = _roomTypeRepository.GetListRoomType(new RoomTypeRequest { IsActive = 1, PageSize = 20, PageIndex = 1 }); SetPageTitle("Quản lý đặt phòng"); return(View(models)); }