// GET: Admin/Store/Edit/5
        public ActionResult Edit(int n_id)
        {
            var modelDB = new ProductDBModel();
            var model   = new ProductModel();
            var result  = modelDB.getProductById(n_id);

            model.id          = result.N_ID;
            model.productName = result.S_NAME;
            model.price       = result.N_PRICE;
            model.type        = result.S_TYPE;
            model.detail      = result.S_DETAIL;
            model.description = result.S_DESCRIPTION;
            model.status      = result.S_STATUS;
            model.createdDate = result.D_CREATED;
            return(View(model));
        }
        // GET: Detail
        public ActionResult Index(int id, string type)
        {
            if (id < 1)
            {
                return(RedirectToAction("Index", "Home"));
            }
            else
            {
                InfoSession modelSession = new InfoSession();

                modelSession           = SessionHelper.GetInfoSession();
                Session["infoSession"] = modelSession;
                DetailModel detailModel = new DetailModel();
                if (type.Equals("PLAN"))
                {
                    var planDBModel = new PlanDBModel();
                    var model       = planDBModel.getPlanById(id);
                    detailModel.id          = model.N_ID;
                    detailModel.name        = model.S_NAME;
                    detailModel.type        = type;
                    detailModel.detail      = model.S_DETAIL;
                    detailModel.description = model.S_DESCRIPTION;
                    detailModel.total       = 1;
                }
                else
                {
                    var productDBModel = new ProductDBModel();
                    var model          = productDBModel.getProductById(id);
                    detailModel.id          = model.N_ID;
                    detailModel.name        = model.S_NAME;
                    detailModel.type        = type;
                    detailModel.detail      = model.S_DETAIL;
                    detailModel.description = model.S_DESCRIPTION;
                    detailModel.price       = model.N_PRICE;
                    detailModel.total       = 1;
                }
                return(View(detailModel));
            }
        }