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"); }
public void SendEmail(string to, string content) => SRPDemoHelper.SendEmail(to, content);