|
⇤ ← Revision 1 as of 2019-01-01 16:30:02
Size: 551
Comment:
|
Size: 551
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| {{{!#hightlight csharp | {{{#!hightlight csharp |
Simple Page
public class UserLogic
{
private GoogleOAuthService _authService;
private GoogleEmailService _emailService;
public UserLogic()
{
_authService = new GoogleOAuthService();
_emailService = new GoogleEmailService();
}
public void Register(string emailAddress, string password)
{
var authResult = _authService.RegisterUser(emailAddress,password);
_emailService.SendMail(emailAddress, authResult.ConfirmationMessage);
}
}