Пример #1
0
        public List <WishlistGridModel> GetMyWishlist(string ownerId, Guid countryId)
        {
            List <WishlistGridModel> listGridModel = new List <WishlistGridModel>();
            var wishlists = _repository.GetAll(ownerId, countryId);

            foreach (var wishlist in wishlists)
            {
                listGridModel.Add(WishlistMapper.MapToWishlistGridModel(wishlist, _adService.GetAdAsAdWishlistGridModel(wishlist.AdId)));
            }

            return(listGridModel);
        }