Beispiel #1
0
        public async Task <IActionResult> UserInfo(long id)
        {
            UserInfoViewModel user = await _policePresentation.GetUserInfo(id);

            List <UserViolationViewModel> userViolations = _policePresentation.GetAllUserViolations(id);

            UserFullInformationViewModel fullInfo = new UserFullInformationViewModel
            {
                UserInfo       = user,
                UserViolations = userViolations
            };

            return(View(fullInfo));
        }