/// <summary>
        /// GET api/beercellar
        /// Returns the collection of cellar entries
        /// </summary>
        /// <returns></returns>
        public IEnumerable <CellarEntry> Get()
        {
            var repo       = BeerCellarRespositoryProvider.GetRepository();
            var collection = repo.GetCollection();

            return(collection);
        }
        /// <summary>
        /// PUT api/beercellar/5
        /// updates the entry with the given id
        /// </summary>
        /// <param name="id"></param>
        /// <param name="value"></param>
        public void Put([FromBody] CellarEntry entry)
        {
            var repo = BeerCellarRespositoryProvider.GetRepository();

            repo.UpdateEntry(entry);
        }
        /// <summary>
        /// POST api/beercellar
        /// Inserts the given entry
        /// </summary>
        /// <param name="value">the json representation of a CellarEntry</param>
        public void Post([FromBody] CellarEntry entry)
        {
            var repo = BeerCellarRespositoryProvider.GetRepository();

            repo.InsertEntry(entry);
        }