예제 #1
0
        public IActionResult SendSerie(SeriePageViewModel viewModel)
        {
            watchListLogic.AddToWatchList(viewModel.WatchList.Serie);


            return(RedirectToAction("Index", "WatchList", new { userid = viewModel.WatchList.Serie.User.Id }));
        }
예제 #2
0
        public IActionResult PageReview(SeriePageViewModel viewModel)
        {
            //viewModel.SendReview.Serieid = viewModel.SelectedSerie.id;

            //mockcode : serieRepo.NewReview(viewModel.SendReview);
            reviewLogic.SendReview(viewModel.SendReview);


            return(RedirectToAction("Page", "SeriePage", new { id = viewModel.SendReview.Serieid }));
        }
예제 #3
0
        public ViewResult Page(int id)
        {
            var seriePageViewModel = new SeriePageViewModel
            {
                SelectedSerie = serieLogic.GetSerieById(id),
                Reviews       = reviewLogic.GetReviewBySerie(id)
            };

            return(View(seriePageViewModel));
        }