コード例 #1
0
 public void OnPostSaveNewUser()
 {
     if (ModelState.IsValid)
     {
         UserEmailAddress = CleansedUserEmailAddress;
         var user = _applicationService.AddUser(UserEmailAddress);
         if (user != null && user.IsNewUser)
         {
             _emailService.SendUserStatusEmail(user.UserId, user.UserAccountStatusId, user.EmailAddress, true);
         }
         UserEmailAddress = null;
     }
     RefreshPage();
 }