예제 #1
0
        public bool AddDonor(displaydonor displayDonor, string host)
        {
            var registrationCode = GenerateRandomNumberString(100);

            displayDonor.Password = PasswordHasher.HashPassword(displayDonor.Password);

            if (true == _customDataAccess.AddDonor(displayDonor, registrationCode))
            {
                if (true == SendThroughProduction(displayDonor.EmailAddress, "Youth in View Account Registration",
                                                  BuildRegistrationEmail(host, registrationCode)))
                {
                    return(true);
                }
            }

            return(false);
        }
예제 #2
0
 public bool SaveDonorInformation(displaydonor displayDonor)
 {
     return(_customDataAccess.SaveDonorInformation(displayDonor));
 }
예제 #3
0
 public bool ModifyDonor(displaydonor displayDonor)
 {
     return(_customDataAccess.ModifyDonor(displayDonor));
 }