Пример #1
0
        public UserPanelViewModel.InformationUserViewModel GetUserInformation(int userId)
        {
            var user = GetUserById(userId);

            UserPanelViewModel.InformationUserViewModel information =
                new UserPanelViewModel.InformationUserViewModel();
            information.UserName     = user.UserName;
            information.Email        = user.Email;
            information.RegisterDate = user.RegisterDate;
            information.Wallet       = BalanceUserWallet(user.UserName);
            return(information);
        }
Пример #2
0
 public void OnGet(int id)
 {
     ViewData["UserId"]       = id;
     InformationUserViewModel = _userService.GetUserInformation(id);
 }