// DELETE api/ideas/5
        public IHttpActionResult Delete(int id)
        {
            if (!MeasureExists(id))
            {
                return(NotFound());
            }
            var measure = _measureRepository.GetMeasureById(id);

            _measureRepository.Delete(measure);
            _measureRepository.Save();

            return(Ok(measure));
        }