public IActionResult Index(int RoomTypeID) { ViewData.Model = RoomTypeDAO.GetAllRoomTypeModel(); ViewBag.RoomTypeID = RoomTypeID; return(View()); }
public IActionResult Index() { ViewData.Model = RoomTypeDAO.GetAllRoomTypeModel(); var list = RoomTypeDAO.GetAllRoomTypeModel(); return(View()); }
public IActionResult RoomsManagement() { if (!Authentication.AuthenticateByCookie(HttpContext)) { return(Redirect("/Receptionists/Authentication/Login?Area=Receptionists&Ctrl=Rooms&Act=RoomsManagement")); } RoomsManagerViewModel model = new RoomsManagerViewModel(); model.RoomModels = RoomsDAO.GetAllRoomsModel(); model.RoomSizes = RoomSizeDAO.GetAllRoomSize(); model.RoomStyles = RoomStyleDAO.GetAllRoomStyle(); model.RoomTypeModels = RoomTypeDAO.GetAllRoomTypeModel(); return(View(model)); }