// GET api/whingepool/5
 public IEnumerable<WhingesByWhingePoolEntity> Get(string id)
 {
     var repository = new WhingeRepository();
     return repository.GetWhingesInWhingePool(id.ToUpperInvariant()).Take(10);
 }
 // 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();
 }
 // GET api/whinge/5
 public IEnumerable<WhingesByWhingerEntity> Get(string id)
 {
     var repository = new WhingeRepository();
     return repository.GetWhinges(id);
 }