Exemple #1
0
        public async Task <IActionResult> GetAll(long id)
        {
            try
            {
                var measurements = await _measurementService.GetAll(id);

                return(Ok(measurements));
            }
            catch (NullReferenceException e)
            {
                return(NotFound($"Can't found measurements"));
            }
        }