Exemplo n.º 1
0
        public async Task <IActionResult> Import(IFormFile file)
        {
            using (var stream = file.OpenReadStream())
            {
                var importResult = await _importService.Import(_importService.GetEntitiesFromFile(stream));

                return(Ok(importResult));
            }
        }