//=== Json ==// public tempJson JsonToEPPlus() // GET Master/JsonToEPPlus { // Declarations tempJson tempjson = new tempJson(); EPlusPlus eppService = new EPlusPlus(); tempjson = GetAndConvJson(tempjson); // Call tempJson and convert return(eppService.EPPJsontoWS(tempjson)); // Create workbook }
//=== File Uploader ===// public async Task <IActionResult> FiletoEPPlus(IFormFile file) // GET /Master/FiletoEPPlus { EPlusPlus service = new EPlusPlus(); if (file == null || file.Length == 0) { return(Content("File not selected")); } FileInfo fi = new FileInfo(file.FileName); var data = service.EPPFiletoWS(fi, file); return(null); }