Ejemplo n.º 1
0
        // GET: Category
        public ActionResult Index(int category_id)
        {
            var serviceController = new VoteServiceController();
            var viewModel         = serviceController.GetVoteViewModel(category_id);

            return(View(viewModel));
        }
Ejemplo n.º 2
0
        // GET: Category/{AlbumId}
        public ActionResult Vote(int album_id, int category_ID)
        {
            var serviceController = new VoteServiceController();
            var userID            = User.Identity.GetUserId();
            var viewModel         = serviceController.Vote(album_id, userID);

            return(RedirectToAction("Index", new { category_id = category_ID }));
        }