Пример #1
0
        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));
        }
Пример #2
0
 public void DeleteSI(SalesIncentiveMaster salesincentive)
 {
     _salesincentivemasterRepository.Delete(salesincentive);
     _unitofwork.Commit();
 }
Пример #3
0
 public ActionResult Create([ModelBinder(typeof(SalesIncentiveCustumBinder))] SalesIncentiveMaster salesincentive)
 {
     _salesincentiveSerive.CreateSI(salesincentive);
     return(RedirectToAction("CreateDetails/" + salesincentive.SIId, "SalesIncentive"));
 }
Пример #4
0
 public void CreateSI(SalesIncentiveMaster salesincentive)
 {
     _salesincentivemasterRepository.Add(salesincentive);
     _unitofwork.Commit();
 }