public ActionResult RemoveRatingFromFilm(Guid mediaId) { if (UserFilmRatingService.ObsoleteRatinginUserLibrary(User.Identity.GetUserId(), mediaId)) { return(RedirectToAction("Details", "Films", new { mediaId })); } return(RedirectToAction("Films", "Library")); }
public ActionResult ChangeRatingForFilm(Guid MediaId, int Rating) { if (UserFilmRatingService.ChangeRatingInUserLibrary(User.Identity.GetUserId(), MediaId, Rating)) { return(RedirectToAction("Details", "Films", new { mediaId = MediaId })); } return(RedirectToAction("Films", "Library")); }