Exemplo n.º 1
0
        public IHttpActionResult getTwoNewRanks()
        {
            var userId   = User.Identity.GetUserId();
            var twoRanks = helperMethods.PickTwoAlbumRankerViewModels(userId);

            return(Ok(Mapper.Map <AlbumRankerViewModel, AlbumRankerDataDto>(twoRanks)));
        }
Exemplo n.º 2
0
        public ActionResult AlbumRanker()
        {
            var curUser = User.Identity.GetUserId();
            var albumRankerViewModel = helperMethods.PickTwoAlbumRankerViewModels(curUser);

            return(View(albumRankerViewModel));
        }