public JsonResult GetLawcategory() { List<lawcategory> _ListLawCategory = new List<lawcategory>(); ArrayList aData = new ArrayList(); var v = db.sp_GET_LAWCATEGORY(); string strDesign = string.Empty; if (v != null) { foreach (var result in v) { LawCategory _LawCategory = new LawCategory(); _LawCategory.LawCategoryID = result.LawCategoryID; _LawCategory.LawCategoryName = result.LawCategoryName; _LawCategory.ParentCategory = result.ParentCategory; _LawCategory.Status = result.Status; _LawCategory.CountryName = result.CountryName; //_ListLawCategory.Add(_LawCategory); aData.Insert(aData.Count, _LawCategory); } } return Json(aData, JsonRequestBehavior.AllowGet); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)