Example #1
0
        public async Task <IActionResult> GetAnomalies()
        {
            var token = await _authorization.GetToken();

            if (token == null)
            {
                return(StatusCode(500, "Unable to authorize"));
            }
            var result = await _reportsService.GetAnomalies(token);

            return(Ok(result));
        }