//[HttpGet] //[Route("{id}")] public Item Get(int id) { // return items.Find(i => i.Id == id); PersistencyService persistance = new PersistencyService(); return(persistance.Get(id)); }
public IEnumerable <Item> Get() { PersistencyService persistency = new PersistencyService(); // return items; return(persistency.Get()); }
public Bid Get(string id) { return(PersistencyService.Get(id)); }
public void Put(string id, [FromBody] Bid value) { PersistencyService.Put(PersistencyService.Get(id).Id, value); }
public IEnumerable <Bid> Get() { return(PersistencyService.Get()); }