Beispiel #1
0
        public async Task <IActionResult> DeleteReport([FromRoute] string id)
        {
            var report = await reportsProvider.GetReport(id);

            if (report == null)
            {
                return(NotFound("Report not found"));
            }
            await reportsProvider.DeleteReport(report);

            return(Ok(id));
        }