public ActionResult ImportCsv(ImportCsvModel importCsvModel) { if (importCsvModel == null) { importCsvModel = new ImportCsvModel(); } return(View(importCsvModel)); }
public JsonResult Upload() { var model = new ImportCsvModel(); int rowId; var messages = model.ProcessUpload(out rowId); return(new { success = messages.HasNoContent(), rowId, messages }.AsJsonResult()); }
public ActionResult GetUploadlist() { var importCsvModel = new ImportCsvModel(); return(importCsvModel.GetUploadList()); }
public ActionResult DeleteFile(int id) { var importCsvModel = new ImportCsvModel(); return(importCsvModel.DeleteFile(id)); }