diff --git a/.github/workflows/gitleaks.yaml b/.github/workflows/gitleaks.yaml
new file mode 100644
index 0000000..d9a8e36
--- /dev/null
+++ b/.github/workflows/gitleaks.yaml
@@ -0,0 +1,38 @@
+name: Secret Value found!
+on:
+ push:
+ public:
+jobs:
+ scan:
+ name: gitleaks
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Install the gitleaks
+ run: wget https://github.com/zricethezav/gitleaks/releases/download/v8.15.2/gitleaks_8.15.2_linux_x64.tar.gz
+ shell: pwsh
+ - name: Extract the tar file
+ run: tar xzvf gitleaks_8.15.2_linux_x64.tar.gz
+ - name: Generate the report
+ id: gitleaks
+ run: $GITHUB_WORKSPACE/gitleaks detect -s $GITHUB_WORKSPACE -f json -r $GITHUB_WORKSPACE/leaksreport.json
+ shell: bash
+ continue-on-error: true
+ - name: Setup NuGet.exe
+ if: steps.gitleaks.outcome != 'success'
+ uses: nuget/setup-nuget@v1
+ with:
+ nuget-version: latest
+ - name: Install the dotnet
+ if: steps.gitleaks.outcome != 'success'
+ uses: actions/setup-dotnet@v3
+ with:
+ dotnet-version: '3.1.x'
+ - name: Install the report tool packages
+ if: steps.gitleaks.outcome != 'success'
+ run: |
+ nuget install "Syncfusion.Email" -source "https://nexus.syncfusion.com/repository/nuget-hosted/"
+ dir $GITHUB_WORKSPACE/Syncfusion.Email.1.0.0/lib/netcoreapp3.1
+ dotnet $GITHUB_WORKSPACE/Syncfusion.Email.1.0.0/lib/netcoreapp3.1/Email.dll "citeam@syncfusion.com" "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE"
+ exit 1
\ No newline at end of file
diff --git a/src/ej2-webservice/Controllers/SpreadsheetController.cs b/src/ej2-webservice/Controllers/SpreadsheetController.cs
new file mode 100644
index 0000000..7f62d52
--- /dev/null
+++ b/src/ej2-webservice/Controllers/SpreadsheetController.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using Microsoft.AspNetCore.Http;
+using Microsoft.AspNetCore.Mvc;
+using Syncfusion.EJ2.Spreadsheet;
+
+namespace DocumenteditorWeb.Controllers
+{
+ [Route("api/Spreadsheet")]
+ public class SpreadsheetController : Controller
+ {
+
+ [HttpPost]
+ [Route("open")]
+ public IActionResult Open(IFormCollection openRequest)
+ {
+ OpenRequest open = new OpenRequest
+ {
+ File = openRequest.Files[0]
+ };
+ return Content(Workbook.Open(open));
+ }
+
+
+ [HttpPost]
+ [Route("save")]
+ public IActionResult Save(SaveSettings saveSettings)
+ {
+ return Workbook.Save(saveSettings);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ej2-webservice/ej2-webservice.csproj b/src/ej2-webservice/ej2-webservice.csproj
index 754d561..ca50263 100644
--- a/src/ej2-webservice/ej2-webservice.csproj
+++ b/src/ej2-webservice/ej2-webservice.csproj
@@ -51,11 +51,14 @@
+
+
+
-
+