Example #1
0
 public void Register(string email, string pwd)
 {
     if (!_emailService.ValidateEmail(email))
     {
         throw new Exception("Invalid email");
     }
     SRPDemoHelper.SaveUserToDb(email, pwd);
     _emailService.SendEmail(email, "Thank you for registering");
 }
Example #2
0
 public void SendEmail(string to, string content) => SRPDemoHelper.SendEmail(to, content);