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