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); } }
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); }