Differences between revisions 1 and 2
Revision 1 as of 2019-01-01 16:30:02
Size: 551
Editor: 68
Comment:
Revision 2 as of 2019-01-01 16:33:24
Size: 551
Editor: 68
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);
    }
}

skip (last edited 2019-01-01 16:37:52 by 68)