コード例 #1
0
        public ActionResult ImportCsv(ImportCsvModel importCsvModel)
        {
            if (importCsvModel == null)
            {
                importCsvModel = new ImportCsvModel();
            }

            return(View(importCsvModel));
        }
コード例 #2
0
        public JsonResult Upload()
        {
            var model = new ImportCsvModel();
            int rowId;
            var messages = model.ProcessUpload(out rowId);

            return(new
            {
                success = messages.HasNoContent(),
                rowId,
                messages
            }.AsJsonResult());
        }
コード例 #3
0
        public ActionResult GetUploadlist()
        {
            var importCsvModel = new ImportCsvModel();

            return(importCsvModel.GetUploadList());
        }
コード例 #4
0
        public ActionResult DeleteFile(int id)
        {
            var importCsvModel = new ImportCsvModel();

            return(importCsvModel.DeleteFile(id));
        }