Esempio n. 1
0
        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"));
        }