示例#1
0
        public ActionResult RemoveRatingFromFilm(Guid mediaId)
        {
            if (UserFilmRatingService.ObsoleteRatinginUserLibrary(User.Identity.GetUserId(), mediaId))
            {
                return(RedirectToAction("Details", "Films", new { mediaId }));
            }

            return(RedirectToAction("Films", "Library"));
        }
示例#2
0
        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"));
        }