コード例 #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");
 }
コード例 #2
0
 public void SendEmail(string to, string content) => SRPDemoHelper.SendEmail(to, content);