private async Task <bool> WriteFile(IFormFile file)
        {
            bool   isSaveSuccess = false;
            string fileName;

            try
            {
                var extension = "." + file.FileName.Split('.')[file.FileName.Split('.').Length - 1];
                fileName = file.FileName;
                var pathBuilt = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "Upload");

                if (!Directory.Exists(pathBuilt))
                {
                    Directory.CreateDirectory(pathBuilt);
                }

                var path = Path.Combine(Directory.GetCurrentDirectory(), "Upload",
                                        fileName);

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

                isSaveSuccess = true;
                _analyticsService.ConvertAndMergeModel(fileName);
            }
            catch (Exception e)
            {
                //log error
            }


            return(isSaveSuccess);
        }