public ActionResult ImportAsync(HttpPostedFileBase importFile, int dossierId, string type)
        {
            if (importFile != null)
            {
                var fileName = importFile.FileName;
                var path     = Path.Combine(Server.MapPath("~/App_Data/FilesTmp"), importFile.FileName);
                importFile.SaveAs(path);

                var importReport = _iImportProcessor.Process(dossierId,
                                                             Server.MapPath("~/App_Data/FilesTmp"),
                                                             importFile.FileName);


                //ImportModel ImportModel = new ImportModel(dossierId, path, Server.MapPath("~/App_Data/FilesTmp/"));

                ////Extracts List Records fromDB
                //string sessionID = dossierId + "_" + HttpContext.Session.SessionID;

                //if (type == "bulk")
                //    ImportModel.ImportBulkInsert();
                //else
                //    await ImportModel.ImportEntityAsync(sessionID);


                return(View("Import", importReport));
            }
            else
            {
                return(RedirectToAction("index", new { dossierId = dossierId }));
            }
        }