Beispiel #1
0
        public async Task <ActionResult> GetMyAuthorReviewsPartial()
        {
            var userId          = User.Identity.GetUserId();
            var myAuthorReviews = await AuthorReviewService.GetMyReviews(userId);

            return(PartialView(myAuthorReviews));
        }
Beispiel #2
0
        public async Task <ActionResult> MyReviews()
        {
            var userId          = User.Identity.GetUserId();
            var myAuthorReviews = await AuthorReviewService.GetMyReviews(userId);

            var myBookReviews = await BookReviewService.GetMyReviews(userId);

            var myPublishingReviews = await PublishingReviewService.GetMyReviews(userId);

            var vm = new MyReviewsViewModel
            {
                MyAuthorReviews     = myAuthorReviews,
                MyBookReviews       = myBookReviews,
                MyPublishingReviews = myPublishingReviews
            };

            return(View(vm));
        }