示例#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());
 }