Esempio n. 1
0
        public ActionResult AddCMS()
        {
            CMSDataStore    ObjDal          = new CMSDataStore();
            SA_CMSViewModel objCatViewModel = new SA_CMSViewModel();

            objCatViewModel.ProductList = ObjDal.GetProductList();

            return(View("add-CMS", objCatViewModel));
        }
Esempio n. 2
0
        public ActionResult EditCMS(int id)
        {
            CMSDataStore          Obj         = new CMSDataStore();
            SA_CMS                obj         = Obj.GetCMSByid(id);
            List <SelectListItem> productList = Obj.GetProductList();
            SA_CMSViewModel       objSaCatV   = new SA_CMSViewModel();

            objSaCatV.id              = obj.id;
            objSaCatV.CMSName         = obj.CMSName;
            objSaCatV.CMSDiscription  = obj.CMSDiscription;
            objSaCatV.Meta            = obj.Meta;
            objSaCatV.MetaDiscription = obj.MetaDiscription;
            objSaCatV.ProductList     = productList;



            return(View("add-CMS", objSaCatV));
        }