Esempio n. 1
0
        public ActionResult AddRentUnitStep6() // Accept Contract View/Print and finish
        {
            var basketAcceptance = new AcceptBasketVM {
                CustomerAccountId = GetRentalBasket().CustomerAccountId, AmountPayed = GetRentalBasket().TotalAmount, FullPayment = GetRentalBasket().FullPayment
            };

            return(View(basketAcceptance));
        }
Esempio n. 2
0
        public ActionResult AddRentUnitStep6(AcceptBasketVM mAcceptBasketVM) // Accept Contract View/Print and finish
        {
            if (ModelState.IsValid)
            {
                var basket = GetRentalBasket();

                if (ExecuteRepositoryAction(() =>
                {
                    UpdateRentalAccountFromBasket(basket);
                    UpdateTransactionsFromBasket(basket);
                    _accountService.CommitChanges();
                }))
                {
                    return(RemoveBasketAndReturnToAccountPage(false));
                }
            }
            return(View(mAcceptBasketVM));
        }