Ejemplo n.º 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));
        }
Ejemplo n.º 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()
            });
        }