コード例 #1
0
        public async Task <IActionResult> AllNeuralNetworks()
        {
            var requests = await neuralNetworkService.GetAll();

            var model = new NeuralNetworksViewModel
            {
                NeuralNetworks = requests
            };

            return(View(model));
        }
コード例 #2
0
        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;
            }
        }