public ActionResult Create(string source) { var roomTypeList = new SelectList(roomTypeRepository.GetRoomType(string.Empty), "Id", "RoomTypeCode"); var ratetypeList = new SelectList(rateTypeRepository.GetRateType(string.Empty), "ID", "RateTypeCode"); ViewBag.RoomTypeList = roomTypeList; ViewBag.RateTypeList = ratetypeList; return(View()); }
public ActionResult BulkReservation() { //return RedirectToAction("Index", "Home"); var roomTypeList = new SelectList(roomTypeRepository.GetRoomType(string.Empty), "Id", "RoomTypeCode").ToList(); var rateTypeList = new SelectList(rateTypeRepository.GetRateType(string.Empty) .Select( m => new SelectListItem() { Value = m.Id.ToString(), Text = m.RateTypeCode } ), "Value", "Text").ToList(); ViewBag.RoomTypeList = roomTypeList; ViewBag.RateTypeList = rateTypeList; return(View()); }
public ActionResult Index() { var roomTypeList = roomTypeRepository.GetRoomType(string.Empty); ViewBag.RoomTypeList = roomTypeList; return(View()); }
public ActionResult Arrivals() { var roomTypeList = new SelectList(roomTypeRepository.GetRoomType(string.Empty), "Id", "RoomTypeCode").ToList(); var roomFeaturesList = roomFeatureRepository.GetRoomFeatures(); var companyList = new SelectList(CompanyRepository.GetCompanyList(), "Id", "CompanyName").ToList(); ViewBag.CompanyList = companyList; ViewBag.RoomTypeList = roomTypeList; ViewBag.RoomFeaturesList = roomFeaturesList; #region Record Activity Log RecordActivityLog.RecordActivity(Pages.SEARCH_ARRIVALS, "Goes to arrivals page."); #endregion return(View()); }
public ActionResult Breakfast() { var roomTypeList = new SelectList(roomTypeRepository.GetRoomType(string.Empty), "Id", "RoomTypeCode").ToList(); var rateTypeList = new SelectList(rateTypeRepository.GetRateType(string.Empty) .Select( m => new SelectListItem() { Value = m.Id.ToString(), Text = m.RateTypeCode } ), "Value", "Text").ToList(); ViewBag.RoomTypeList = roomTypeList; ViewBag.RateTypeList = rateTypeList; return(View()); }