private void HandleUserResult(CreateStudentCompletedEventArgs args, string courseName)
        {
            StudentCreatedPayload payload = new StudentCreatedPayload()
            {
                SystemCreatedPassword = args.systemPassword,
                CreatedUserToken = args.Result,
                CourseName = courseName
            };

            eventAggregator.GetEvent<StudentCreatedEvent>().Publish(payload);
        }
 public void StudentCreated( StudentCreatedPayload payload)
 {
     NewStudentEmailText = string.Format(EmailFormatString, payload.CreatedUserToken.Name, payload.CreatedUserToken.Email, payload.SystemCreatedPassword, payload.CourseName);
     IsPending = false;
 }