public JsonResult BindAllDropdownlist(string drpType) { BindAllDropdownlist.DropdownMasterDetails _objbindDropdown = new BindAllDropdownlist.DropdownMasterDetails(); List <BindAllDropdownlist.DropdownMasterDetails> SecurityQuestions = new List <BindAllDropdownlist.DropdownMasterDetails>(); try { SecurityQuestions = _objIAccountBusiness.BindAllDropdownlists(drpType).ToList(); if (SecurityQuestions != null) { //if (drpType == Constant.dllVendor) //{ _objbindDropdown._Collection_Models_list = SecurityQuestions[0]._Collection_Models_list; //} } } catch (Exception ex) { ex.Data.Add("LoginUser", "Error"); } return(Json(_objbindDropdown, JsonRequestBehavior.AllowGet)); }