public async Task <IActionResult> AllNeuralNetworks() { var requests = await neuralNetworkService.GetAll(); var model = new NeuralNetworksViewModel { NeuralNetworks = requests }; return(View(model)); }
public async Task <IEnumerable <AllNeuralNetworksOutput> > GetAll() { try { var response = await neuralNetworkService.GetAll(); return(response); } catch (Exception ex) { logger.LogError(ex, "Exception when loading all neural networks"); throw; } }