Пример #1
0
        //[HttpGet]
        //[Route("{id}")]
        public Item Get(int id)
        {
            // return items.Find(i => i.Id == id);
            PersistencyService persistance = new PersistencyService();

            return(persistance.Get(id));
        }
Пример #2
0
        public IEnumerable <Item> Get()
        {
            PersistencyService persistency = new PersistencyService();

            // return items;
            return(persistency.Get());
        }
Пример #3
0
 public Bid Get(string id)
 {
     return(PersistencyService.Get(id));
 }
Пример #4
0
 public void Put(string id, [FromBody] Bid value)
 {
     PersistencyService.Put(PersistencyService.Get(id).Id, value);
 }
Пример #5
0
 public IEnumerable <Bid> Get()
 {
     return(PersistencyService.Get());
 }