Exemple #1
0
        public async Task <IActionResult> Get([FromRoute] int reportId)
        {
            var report = await _reportsRepository.FindByIdAsync(reportId);

            if (report == null)
            {
                return(NotFound(new { Error = "Report was not found" }));
            }

            return(Ok(report));
        }