private static void EPPSandbox() { string filepath = "E:\\temp\\catalyst_timesheet_test_import.xlsx"; var importer = new DomainServices.Integrations.Catalyst.TimesheetImporter(filepath); importer.Import(); }
public ActionResult CatalystTimesheetProcess(string fileName) { string path = System.Configuration.ConfigurationManager.AppSettings["CatalystImportDirectory"]; string fullPath = Server.MapPath(System.IO.Path.Combine(path, fileName)); var importer = new DomainServices.Integrations.Catalyst.TimesheetImporter(fullPath); importer.Import(); return(new HttpStatusCodeResult(System.Net.HttpStatusCode.OK)); }