public IActionResult SendSerie(SeriePageViewModel viewModel) { watchListLogic.AddToWatchList(viewModel.WatchList.Serie); return(RedirectToAction("Index", "WatchList", new { userid = viewModel.WatchList.Serie.User.Id })); }
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 })); }
public ViewResult Page(int id) { var seriePageViewModel = new SeriePageViewModel { SelectedSerie = serieLogic.GetSerieById(id), Reviews = reviewLogic.GetReviewBySerie(id) }; return(View(seriePageViewModel)); }