Changed several synchronous database calls to asynchronous calls.

This commit is contained in:
Daniel Wathen
2023-01-04 17:17:24 -07:00
parent 81f7e1a57b
commit 8bc7d7bdde
2 changed files with 9 additions and 6 deletions

View File

@ -26,7 +26,7 @@ namespace ReportingServices.UI.Controllers
{
try
{
DailyReport dailyReport = DailyReportHelper.SetUpDailyReport().Result;
DailyReport dailyReport = DailyReportHelper.SetUpDailyReport();
Dictionary<string, List<string>> toolStateOwners = JsonFileHandler.LoadJSONFile<Dictionary<string, List<string>>>(_toolStateOwnerFilePath);
dailyReport.ToolStatesByOwner = toolStateOwners;
@ -38,7 +38,6 @@ namespace ReportingServices.UI.Controllers
_logger.LogCritical(ex, "Failed to load report");
return View();
}
}
public IActionResult EditDailyReport()