示例#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();
 }