public async Task <IActionResult> Step1Submit(List <IFormFile> files)
        {
            CreateJobStep1ViewModel result;

            var file = files.FirstOrDefault();

            if (file?.Length > 0)
            {
                string filePath = createJobControllerUtils.GetFilePath(file.FileName);

                using (var stream = new FileStream(filePath, FileMode.Create))
                {
                    await file.CopyToAsync(stream);
                }

                result = createJobControllerUtils.ListStratProperties(filePath);
            }
            else
            {
                result = new CreateJobStep1ViewModel()
                {
                    Message = "No content was uploaded",
                    Success = false
                };
            }

            return(View("Step1", result));
        }
        public async Task <IActionResult> Upload(List <IFormFile> files)
        {
            var file = files.FirstOrDefault();

            if (file?.Length > 0)
            {
                string filePath = utils.GetFilePath(file.FileName);

                using (var stream = new FileStream(filePath, FileMode.Create))
                {
                    await file.CopyToAsync(stream);
                }

                var result = utils.ListStratProperties(filePath);

                return(View("../JobGroups/Create", result));
            }

            return(Ok());
        }