Пример #1
0
        static void Main(string[] args)
        {
            WishlistRepository   obj    = new WishlistRepository();
            List <WishListModel> result = obj.SelectAll();

            foreach (WishListModel item in result)
            {
                Console.WriteLine(JsonConvert.SerializeObject(item));
            }
        }
 public List <WishListModel> GetAllWishes()
 {
     return(_repository.SelectAll());
 }