public ActionResult Delete() { DatabaseName = CompanyName + " " + FinancialYear; MainApplication model = new MainApplication(); var SIList = _salesincentiveSerive.GetAllSI(); string slabname = string.Empty; List <SalesIncentiveMaster> list = new List <SalesIncentiveMaster>(); foreach (var item in SIList) { SalesIncentiveMaster slabData = new SalesIncentiveMaster(); slabname = item.SISlabFrom + " - " + item.SISlabTo; slabData.SISlabFrom = slabname; slabData.SIId = item.SIId; list.Add(slabData); slabname = string.Empty; } model.SalesIncentiveList = list; model.userCredentialList = _IUserCredentialService.GetUserCredentialsByEmail(UserEmail); model.modulelist = _iIModuleService.getAllModules(); model.CompanyCode = CompanyCode; model.CompanyName = CompanyName; model.FinancialYear = FinancialYear; return(View(model)); }
public void DeleteSI(SalesIncentiveMaster salesincentive) { _salesincentivemasterRepository.Delete(salesincentive); _unitofwork.Commit(); }
public ActionResult Create([ModelBinder(typeof(SalesIncentiveCustumBinder))] SalesIncentiveMaster salesincentive) { _salesincentiveSerive.CreateSI(salesincentive); return(RedirectToAction("CreateDetails/" + salesincentive.SIId, "SalesIncentive")); }
public void CreateSI(SalesIncentiveMaster salesincentive) { _salesincentivemasterRepository.Add(salesincentive); _unitofwork.Commit(); }