Exemplo n.º 1
0
        public ActionResult EnterDonationProcess(string guid, int?charityId, string charityName, string name, string email, string style)
        {
            if (string.IsNullOrWhiteSpace(guid) || !charityId.HasValue)
            {
                return(RedirectToAction("Index"));
            }
            if (string.IsNullOrWhiteSpace(email))
            {
                return(RedirectToAction("Confess", "Home", new { guid = guid, charityid = charityId, charityName = charityName, needemail = true }));
            }

            try
            {
                _indulgeMeService.SetCharityDetails(guid, charityId.Value, charityName, name, email, style);
            }
            catch (Exception ex)
            {
                _log.Error("An error happend", ex);
                throw;
            }
            return(EnterSimpleDonationProcess(guid, charityId.Value));
        }