Пример #1
0
        public async Task <IActionResult> Profile(string message = null, string error = null)
        {
            ViewBag.Message = message;
            ViewBag.Error   = error;
            var user = await _userManager.GetUserAsync(HttpContext.User);

            var reviewer = await _reviewerRepository.GetByUserId(user.Id);

            ViewBag.Reviews = await _reviewsRepository.GetByReviewerIdAsync(reviewer.Id);

            return(View(reviewer));
        }