// GET api/whingepool/5
 public IEnumerable<WhingesByWhingePoolEntity> Get(string id)
 {
     var repository = new WhingeRepository();
     return repository.GetWhingesInWhingePool(id.ToUpperInvariant()).Take(10);
 }
Exemplo n.º 2
0
 // POST api/whinge
 public void Post(WhingeEntity whinge)
 {
     var repository = new WhingeRepository();
     repository.Whinge(whinge);
 }
 // GET api/whingepool
 public IEnumerable<WhingePoolEntity> Get()
 {
     var repository = new WhingeRepository();
     return repository.GetWhingePools();
 }
Exemplo n.º 4
0
 // GET api/whinge/5
 public IEnumerable<WhingesByWhingerEntity> Get(string id)
 {
     var repository = new WhingeRepository();
     return repository.GetWhinges(id);
 }