Пример #1
0
        public async Task <IList <ScenarioModel> > Upload(IFormFile formFile)
        {
            try
            {
                _scenarioService.UploadScenarios(formFile);

                var scenarios = await _scenarioService.GetAll();

                return(await Task.FromResult(scenarios));
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                throw;
            }
        }