public JsonResult GetSubClassification(string id) { List<SelectListItem> SubClassification = new List<SelectListItem>(); ProductAdminBLL bll = new ProductAdminBLL(); Dictionary<string, string> list = bll.GetSUBClassificationBasedOnID(id); foreach (var item in list) { SubClassification.Add(new SelectListItem { Text = item.Value, Value = item.Key }); } return Json(new SelectList(SubClassification, "Value", "Text")); }