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

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

            return(false);
        }