Differences between revisions 2 and 3
Revision 2 as of 2019-01-01 16:33:24
Size: 551
Editor: 68
Comment:
Revision 3 as of 2019-01-01 16:34:36
Size: 550
Editor: 68
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
{{{#!hightlight csharp {{{#!highlight csharp

Simple Page

Toggle line numbers
   1 public class UserLogic
   2 {
   3     private GoogleOAuthService _authService;
   4     private GoogleEmailService _emailService;
   5 
   6     public UserLogic()
   7     {
   8         _authService = new GoogleOAuthService();
   9         _emailService = new GoogleEmailService();
  10     }
  11 
  12     public void Register(string emailAddress, string password)
  13     {
  14         var authResult = _authService.RegisterUser(emailAddress,password);
  15         _emailService.SendMail(emailAddress, authResult.ConfirmationMessage);
  16     }
  17 }

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