Beispiel #1
0
        public JsonResult GetChildID(string ParentCode)
        {
            List <TSMSector> lstTSMSector = new List <TSMSector>();

            try
            {
                ManageSectorModel sectorModel = new ManageSectorModel();
                lstTSMSector = sectorModel.GetChildID(ParentCode);
            }
            catch (Exception ex)
            {
                ErrorLog.WriteLog("SectorController", "GetChildID", ex, ParentCode);
            }
            return(this.Json(new { Child = lstTSMSector.Select(x => x.Name + "|" + x.ID).ToList() }, JsonRequestBehavior.AllowGet));
        }