Beispiel #1
0
        //BeforeBuyingContainer context = null;

        //public DBRepository2()
        //{
        //    context = new BeforeBuyingContainer();
        //}

        public async Task <List <ItemDataContract> > GetAllItemsAsync(/*int id*/)
        {
            GetShopDBData dbRepository = new GetShopDBData();

            List <ItemDataContract> items = new List <ItemDataContract>();

            try
            {
                items = dbRepository.getItems();
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(items);
            //    context.ItemSet.ToListAsync();
            //return context.ItemSet.Select(x => x).ToList();
        }