public ActionResult Index(int page = 1) { var a = User.Identity.GetUserId(); var userData = new UserViewModel { ProfileData = Mapper.Map <ProfileDTO, ProfileViewModel>(_profileDataService.GetUserData(User.Identity.GetUserId())), VacationBalanceData = Mapper.Map <VacationBalanceDTO, VacationBalanceViewModel>( _profileDataService.GetUserVacationBalance(User.Identity.GetUserId())), VacationsData = Mapper.MapCollection <ProfileVacationDTO, ProfileVacationsViewModel>( _profileDataService.GetUserVacationsData(User.Identity.GetUserId())).ToPagedList(page, pageSize) }; return(View("MyProfile", userData)); }