public IHttpActionResult getTwoNewRanks() { var userId = User.Identity.GetUserId(); var twoRanks = helperMethods.PickTwoAlbumRankerViewModels(userId); return(Ok(Mapper.Map <AlbumRankerViewModel, AlbumRankerDataDto>(twoRanks))); }
public ActionResult AlbumRanker() { var curUser = User.Identity.GetUserId(); var albumRankerViewModel = helperMethods.PickTwoAlbumRankerViewModels(curUser); return(View(albumRankerViewModel)); }