public ActionResult CreateDetails(string id) { DatabaseName = CompanyName + " " + FinancialYear; MainApplication model = new MainApplication() { GodownDetails = new GodownMaster(), }; int Id = Decode(id); model.GodownDetails = _godownService.GetGodownDetailsById(Id); model.GodownAddressList = _godownaddresService.GetAddressList(model.GodownDetails.GdCode); model.userCredentialList = _IUserCredentialService.GetUserCredentialsByEmail(UserEmail); model.modulelist = _iIModuleService.getAllModules(); model.CompanyCode = CompanyCode; model.CompanyName = CompanyName; model.FinancialYear = FinancialYear; return(View(model)); }
public JsonResult GetGodownAddresses(string code) { string godownname = _godownservice.GetGodownByCode(code).GodownName; var godownAddress = _godownaddressservice.GetAddressList(code); var addresslist = godownAddress.Select(m => new SelectListItem { Text = m.AreaName, Value = m.AreaName }); return(Json(new { godownname, addresslist }, JsonRequestBehavior.AllowGet)); }