Пример #1
0
        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));
        }
Пример #2
0
        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()
            });
        }