Update Areas/MMS/Controllers/MarineController.cs
This commit is contained in:
parent
b0437d2fe8
commit
549e61f5a8
@ -1,14 +1,7 @@
|
|||||||
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;
|
||||||
|
|
||||||
@ -79,7 +72,6 @@ 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
|
||||||
@ -232,11 +224,6 @@ 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
|
||||||
@ -379,7 +366,7 @@ namespace PSTW_CentralSystem.Areas.MMS.Controllers
|
|||||||
tarball.OptionalName4,
|
tarball.OptionalName4,
|
||||||
tarball.FirstSampler,
|
tarball.FirstSampler,
|
||||||
tarball.FullName,
|
tarball.FullName,
|
||||||
tarball.LevelName
|
tarball.LevelName
|
||||||
).GeneratePdf();
|
).GeneratePdf();
|
||||||
|
|
||||||
// ===== 4. Return PDF =====
|
// ===== 4. Return PDF =====
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user