Exemple #1
0
        public async Task <IActionResult> GetAllScans()
        {
            List <Scan> allScans;

            try
            {
                allScans = await _ScanService.GetAllScans();
            }   //try
            catch (Exception e)
            {
                return(StatusCode(500));
            }   // catch

            return(Json(allScans));
        }       // GetAllScans()