public async Task <IActionResult> Import(IFormFile file) { using (var stream = file.OpenReadStream()) { var importResult = await _importService.Import(_importService.GetEntitiesFromFile(stream)); return(Ok(importResult)); } }
public async Task <IActionResult> Import(IFormFile file) { using (var stream = file.OpenReadStream()) { var importResult = await _importService.Import(_importService.GetEntitiesFromFile(stream)); return(Ok(importResult)); } }