예제 #1
0
        public ActionResult Index()
        {
            var model = _fac.GetData();

            if (model == null)
            {
                model = new CMS_DTO.CMSPolicy.CMS_PolicyModels();
            }
            return(View(model));
        }
예제 #2
0
        // GET: Admin/CMSCategories
        public ActionResult Index()
        {
            var model = new CMS_PolicyModels();
            var data  = _factory.GetData();

            if (data != null)
            {
                model = data;
            }
            return(View(model));
        }