public ListOfValueDropDownModel LoadDropDownData() { ListOfValueDropDownModel model = new ListOfValueDropDownModel(); using (var db = new MainDbContext()) { List <SelectListItem> listExistGroupType = _clsGlobal.GetAllGroupType(); model.lstGroupType = listExistGroupType; } return(model); }
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()); }