Ejemplo n.º 1
0
        public async Task <ActionResult <ResultResponse> > Upload(CancellationToken ct)
        {
            var context = HttpContext;
            FileReaderService fileReaderService = new FileReaderService(_importerService, _multiPartStreamReaderService, context.Request.Body);

            return(new ResultResponse()
            {
                ParsedRows = await fileReaderService.ReadFileAsync(ct)
            });
        }