示例#1
0
        public async Task <ActionResult> Import()
        {
            string json = null;

            CatererViewModel caterer = new CatererViewModel();


            IFormFile file = Request.Form.Files[0];

            caterer.FormDocument = file;
            //string tableData=  ExcelUtility.DisplayTable(file);

            string tableData = await _ExcelSvc.PostExcel(caterer);

            //_ExcelSvc.Get();


            return(RedirectToAction("Registration", "Caterer", new
            {
                test = tableData
            }));

            //return this.Content(tableData);
        }