コード例 #1
0
        public ActionResult Create(int id)
        {
            checkInDetails.roomId = id;
            var details = new CheckInModel
            {
                PurposeList = purposeBL.ListPurpose(),
                PlanList    = planBL.ListPlan(),
                CompanyList = companyBL.ListCompany(),
                AgentList   = agentBL.ListAgent(),
                PrefixList  = prefixBL.ListPrefix(),
                CountryList = countryBL.ListCountry()
            };

            ViewBag.Title          = "Check-In";
            ViewBag.ControllerName = "CheckIn";
            ViewBag.RoomNo         = checkInDetails.GetRoomNo();
            ViewBag.GrcNo          = checkInDetails.GetGrcNo();
            return(View(details));
        }