Esempio n. 1
0
        public async Task <IActionResult> UpdloadImport(IFormFile file)
        {
            if (file == null || file.Length == 0)
            {
                return(BadRequest());
            }

            var response = await _importService.CreateImportAsync(file);

            if (response.Success)
            {
                return(Ok(response));
            }

            return(BadRequest(response));
        }