Compare commits
No commits in common. "b903b62c2bd1ac512f7c1e7c495f5dda009b1271" and "8022ef80e729e74f9569b76ca4880b26ebb7241b" have entirely different histories.
b903b62c2b
...
8022ef80e7
5
.gitignore
vendored
5
.gitignore
vendored
@ -360,7 +360,4 @@ MigrationBackup/
|
|||||||
.ionide/
|
.ionide/
|
||||||
|
|
||||||
# Fody - auto-generated XML schema
|
# Fody - auto-generated XML schema
|
||||||
FodyWeavers.xsd
|
FodyWeavers.xsd
|
||||||
|
|
||||||
# Ignore local publish test builds
|
|
||||||
publish-test/
|
|
||||||
@ -1,7 +1,14 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using PSTW_CentralSystem.DBContext;
|
using PSTW_CentralSystem.DBContext;
|
||||||
|
//using PSTW_CentralSystem.Areas.MMS.Models;
|
||||||
|
//using System.IO;
|
||||||
|
//using System.Linq;
|
||||||
using PSTW_CentralSystem.Areas.MMS.Models.PDFGenerator;
|
using PSTW_CentralSystem.Areas.MMS.Models.PDFGenerator;
|
||||||
using QuestPDF.Fluent;
|
using QuestPDF.Fluent;
|
||||||
|
//using System.Threading.Tasks;
|
||||||
|
//using System.Threading;
|
||||||
|
//using System.Collections.Generic;
|
||||||
|
//using Microsoft.Data.SqlClient;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using MySqlConnector;
|
using MySqlConnector;
|
||||||
|
|
||||||
@ -72,6 +79,7 @@ namespace PSTW_CentralSystem.Areas.MMS.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet] // Explicitly mark as a GET endpoint
|
[HttpGet] // Explicitly mark as a GET endpoint
|
||||||
|
//removal TBD===============!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
public IActionResult TestCredentials()
|
public IActionResult TestCredentials()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -224,6 +232,11 @@ namespace PSTW_CentralSystem.Areas.MMS.Controllers
|
|||||||
return await GeneratePdfResponse(id, true);
|
return await GeneratePdfResponse(id, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//public async Task<IActionResult> DownloadPDF(int id)
|
||||||
|
//{
|
||||||
|
// return await GeneratePdfResponse(id, true);
|
||||||
|
//}
|
||||||
|
|
||||||
public IActionResult ViewPDF(int id)
|
public IActionResult ViewPDF(int id)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user