Ejemplo n.º 1
0
        public IActionResult Create(DonationViewModel donationViewModel)
        {
            _donationService.MakeDonationAsync(donationViewModel);

            if (_domainNotificationService.HasErrors)
            {
                AddDomainErrors();
                return(View(donationViewModel));
            }

            AddNotificationOfSuccessfulTransaction("Donation successful!<p>Thank you for supporting our cause :)</p>");
            return(RedirectToAction("Index", "Home"));
        }