コード例 #1
0
        public ActionResult List()
        {
            var modelDB = new PlanDBModel();
            var list    = modelDB.getListPlan();

            return(View(list));
        }
コード例 #2
0
        // GET:
        public ActionResult SelectPlan(int id)
        {
            CustomerDetailModel customerDetailModel = new CustomerDetailModel();
            var modelDB = new PlanDBModel();
            var list    = modelDB.getListPlan();

            customerDetailModel.Plans      = list;
            customerDetailModel.customerId = id;
            return(View(customerDetailModel));
        }
コード例 #3
0
        // GET: ProductList
        public ActionResult Index()
        {
            InfoSession modelSession = new InfoSession();

            modelSession           = SessionHelper.GetInfoSession();
            Session["infoSession"] = modelSession;
            var        productModelDB = new ProductDBModel();
            var        planModelDB    = new PlanDBModel();
            IndexModel model          = new IndexModel();

            model.Products = productModelDB.getListProduct();
            model.Plans    = planModelDB.getListPlan();
            return(View(model));
        }