Esempio n. 1
0
        //=== 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
        }
Esempio n. 2
0
        //=== 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);
        }