示例#1
0
 public void SendPasswordResetEmail(string emailAddress, string name, string userName, string password, string departmentName)
 {
     try
     {
         _emailProvider.SendPasswordResetMail(name, password, userName, emailAddress, departmentName);
     }
     catch (Exception ex)
     {
         Logging.LogException(ex);
     }
 }
示例#2
0
        public async Task <bool> SendPasswordResetEmail(string emailAddress, string name, string userName, string password, string departmentName)
        {
            try
            {
                await _emailProvider.SendPasswordResetMail(name, password, userName, emailAddress, departmentName);

                return(true);
            }
            catch (Exception ex)
            {
                Logging.LogException(ex);
            }

            return(false);
        }