Ejemplo n.º 1
0
        public ActionResult LoadDesignNames(string name)
        {
            MainApplication model = new MainApplication()
            {
                DesignDetails = new DesignMaster(),
            };

            model.DesignList = _DesignService.GetDesignNamesBySubCat(name);
            return(View(model));
        }
        public JsonResult LoadDesignCode(string type)
        {
            IEnumerable <DesignMaster> dm = _DesignService.GetDesignNamesBySubCat(type);
            var data = dm.Select(m => new SelectListItem()
            {
                Text  = m.DesignName,
                Value = m.DesignCode,
            });

            return(Json(data, JsonRequestBehavior.AllowGet));
        }