Ejemplo n.º 1
0
        /// <summary>
        /// Show all answer descriptions that user added.
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public IActionResult ShowUserDescriptions(string id)
        {
            var user = _userService.FindById(id);

            var answerDescriptions = _answerDescriptionService.FindDirectByUserId(id);

            var model = new AdminUserDescriptionsViewModel()
            {
                User = user, AnswerDescriptions = answerDescriptions
            };

            return(View(model));
        }