コード例 #1
0
 public AddItemToStoreViewModel()
 {
     Items      = new BindableCollection <Item>(ItemsProcessor.GetItems <Item>());
     Stores     = new BindableCollection <Store>(StoreProcessor.GetStores <Store>());
     Vendors    = new BindableCollection <Vendor>(VendorsProcessor.GetVendors <Vendor>());
     StoreItems = new BindableCollection <Item>();
 }
コード例 #2
0
        public void SearchItem()
        {
            Item searchedItem = new Item
            {
                Title              = Title,
                Description        = Description,
                Price              = Price,
                Sold               = Sold,
                PaymentDistributed = PaymentDistributed,
                Owner              = Owner
            };

            Items = new BindableCollection <Item>(ItemsProcessor.GetItems <Item>(searchedItem));
        }
コード例 #3
0
 public ActionResult <Task <List <Item> > > GetItems(Guid id)
 {
     return(itProcessor.GetItems(id));
 }
コード例 #4
0
 public AddNewItemViewModel()
 {
     Items   = new BindableCollection <Item>(ItemsProcessor.GetItems <Item>());
     Vendors = new BindableCollection <Vendor>(VendorsProcessor.GetVendors <Vendor>());
 }