public JsonResult GetAllParentCompanyData() { CompanyMasterBL companyBl = new CompanyMasterBL(); List <CompanyMasterEntities> companylist = new List <CompanyMasterEntities>(); /*Need to be changed in future Deep */ companylist = companyBl.GetAllMasterCompanies(1); return(Json(companylist, JsonRequestBehavior.AllowGet)); }
public void GetAllParentCompanyList() { CompanyMasterBL companyBl = new CompanyMasterBL(); List <CompanyMasterEntities> companylist = new List <CompanyMasterEntities>(); /*Need to be changed in future*/ companylist = companyBl.GetAllMasterCompanies(1); ViewBag.masterCompanyallforDrwopdwon = companylist.Select(x => new SelectListItem() { Text = x.CompanyName, Value = x.CompanyId.ToString() }); }