public async Task <ActionResult> Get(bool all)
        {
            if (!all)
            {
                throw new NullReferenceException("measurement not found");
            }
            if (!_context.Measurements.Any())
            {
                throw new NullReferenceException("Measurements no entries");
            }
            var measurements = await _measurementService.GetRange(all);

            return(Ok(measurements));
        }