Beispiel #1
0
        public async Task <IActionResult> UserPanelFavourites(int?page)
        {
            var user = await _signInManager.UserManager.GetUserAsync(User);

            var model = _favouriteRepository.GetAllWithId(user.Id);

            var pageNumber       = page ?? 1;
            int pageSize         = 9;
            var onepageOfRecipes = model.ToList().ToPagedList(pageNumber, pageSize);

            return(View(onepageOfRecipes));
        }