//
        // GET: /LcpsLdap/LdapAccountImport/
        // GET: LcpsEmail/LcpsEmail
        public ActionResult Import()
        {
            ImportViewModel m = new ImportViewModel();
            m.FormAction = "Parse";
            m.FormArea = "LcpsLdap";
            m.FormController = "LdapAccountImport";
            m.SubmitText = "View File";
            m.ImportAction = "Process";
            m.ImportArea = "LcpsLdap";
            m.ImportController = "LdapAccountImport";
            m.SessionVarName = "LcpsAccountImport";

            return View(m);
        }
Exemplo n.º 2
0
        //
        // GET: /HumanResources/HRStaffImport/
        public ActionResult Import()
        {
            ImportViewModel m = new ImportViewModel();
            m.FormAction = "Parse";
            m.FormArea = "HumanResources";
            m.FormController = "HRStaffImport";
            m.SubmitText = "View File";
            m.ImportAction = "Process";
            m.ImportArea = "HumanResources";
            m.ImportController = "HRStaffImport";
            m.SessionVarName = "HRStaffImport";

            return View(m);
        }
 public ActionResult Parse(ImportViewModel m)
 {
     m.ProcessImportFile(typeof(LdapAccountImportRecord));
     Session[m.SessionVarName] = m;
     return View("Import", m);
 }