Ejemplo n.º 1
0
        public ActionResult Confirm(int id, BillDto input, double Amount)
        {
            var bill   = _billAppService.GetBill(id);
            var dealer = _dealerAppService.GetDealer(input.ApplicantId);

            if (bill != null)
            {
                _billAppService.ConfirmBill(bill, Amount);
            }
            else
            {
                throw new UserFriendlyException("Enter the paid amount");
            }
            return(RedirectToAction("Index"));
        }