public IActionResult TodayVolumeReport() { try { var result = stockMarket.GetStockStats().ToList(); return(Ok(result)); } catch (Exception ex) { Logger.WriteLine($"WEBAPI TodayVolumeReport() failed with exception. Message {ex.Message}"); return(NotFound("Exception in TodayVolumeReport() function")); } }