コード例 #1
0
        public async Task <IActionResult> ShowUser(string id)
        {
            var user = _userService.FindById(id);

            // This will load user's image into user object
            _blobService.GetUserImagUrl(user);

            var answers = await _answerService.FindDirectByUserId(id);

            var model = new AdminUserViewModel()
            {
                User = user, Answers = answers
            };

            return(View(model));
        }