private async Task <List <Measure> > GetMeasuresAsync(DateTime startDate, DateTime endDate)
        {
            List <Measure> measures = await _measureRepository.GetAllByProfileIdAsync(_currentProfileId);

            return(measures
                   .Where(m => m.MeasureDate > startDate && m.MeasureDate < endDate)
                   .ToList());
        }