예제 #1
0
        public async Task <UserDetailsModel> GetUserDetails(string userId)
        {
            var model = new UserDetailsModel();
            var user  = await GetUser(userId, model);

            if (user == null)
            {
                return(LogErrorReturnModel(model));
            }

            model.UserId      = userId;
            model.Username    = user.UserName;
            model.PhoneNumber = await _userManager.GetPhoneNumberAsync(user);

            var userModel = await _usersData.GetUser(userId);

            model.DisplayName = userModel?.DisplayName;

            return(model);
        }