예제 #1
0
        public ListOfValueDropDownModel LoadDropDownData()
        {
            ListOfValueDropDownModel model = new ListOfValueDropDownModel();

            using (var db = new MainDbContext())
            {
                List <SelectListItem> listExistGroupType = _clsGlobal.GetAllGroupType();
                model.lstGroupType = listExistGroupType;
            }
            return(model);
        }
예제 #2
0
        public ActionResult ListOfValueNew()
        {
            Session.Clear();

            //ListOfValueViewModel obj = new ListOfValueViewModel();

            modelDropDown        = _clsListOfValue.LoadDropDownData();
            ViewBag.DropDownData = modelDropDown;

            //List<SelectListItem> lstExistingGroupType = _clsGlobal.GetAllGroupType();
            //ViewData["getExistType"] = lstExistingGroupType;

            ViewBag.GroupDropDownData = GetParentGroupDropDownData();

            return(View());
        }