Exemple #1
0
        private async Task LoadAsync(IdentityUser user)
        {
            var email = await _userManager.GetEmailAsync(user);

            var speakerProfile = await _speakerRepository.GetSpeakerBySpeakerIdAsync(user.Id);

            Email = email;

            Input = new InputModel
            {
                FirstName = speakerProfile.FirstName,
                LastName  = speakerProfile.LastName,
                UserPhoto = speakerProfile.PhotoPath,
                Bio       = speakerProfile.Bio,
                Company   = speakerProfile.Company,
            };
        }