Exemplo n.º 1
0
        public async Task <IActionResult> ExportAllLists()
        {
            WishListsWrapper wishListsWrapper = await _wishListRepository.GetAllLists();

            var queryString = HttpContext.Request.Query;
            int from        = int.Parse(queryString["from"]);
            int to          = int.Parse(queryString["to"]);
            IList <WishListWrapper> wishListsWrappers = wishListsWrapper.WishLists;

            wishListsWrapper.WishLists = wishListsWrappers.Skip(from - 1).Take(to - from).ToList();

            return(Json(wishListsWrapper));
        }