|
|
@ -332,7 +332,7 @@ namespace Myshipping.Application
|
|
|
|
[HttpGet("/BookingPrintTemplate/download"), AllowAnonymous]
|
|
|
|
[HttpGet("/BookingPrintTemplate/download"), AllowAnonymous]
|
|
|
|
public async Task<IActionResult> Download(long id)
|
|
|
|
public async Task<IActionResult> Download(long id)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var printFile = await _rep.FirstOrDefaultAsync(u => u.Id == id);
|
|
|
|
var printFile = await _rep.AsQueryable().Filter(null, true).FirstAsync(u => u.Id == id);
|
|
|
|
if (printFile == null)
|
|
|
|
if (printFile == null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw Oops.Bah(BookingErrorCode.BOOK115);
|
|
|
|
throw Oops.Bah(BookingErrorCode.BOOK115);
|
|
|
|