예제 #1
0
        // POST api/whinge
        public void Post(WhingeEntity whinge)
        {
            var repository = new WhingeRepository();

            repository.Whinge(whinge);
        }
예제 #2
0
        // GET api/whingepool/5
        public IEnumerable <WhingesByWhingePoolEntity> Get(string id)
        {
            var repository = new WhingeRepository();

            return(repository.GetWhingesInWhingePool(id.ToUpperInvariant()).Take(10));
        }
예제 #3
0
        // GET api/whinge/5
        public IEnumerable <WhingesByWhingerEntity> Get(string id)
        {
            var repository = new WhingeRepository();

            return(repository.GetWhinges(id));
        }
예제 #4
0
        // GET api/whingepool
        public IEnumerable <WhingePoolEntity> Get()
        {
            var repository = new WhingeRepository();

            return(repository.GetWhingePools());
        }