Completato sostituzione metodi (DA TESTARE!!!)

This commit is contained in:
Samuele Locatelli
2026-03-18 13:15:07 +01:00
parent 490011bae5
commit edaa834a9c
7 changed files with 63 additions and 57 deletions
+5 -4
View File
@@ -23,7 +23,7 @@ namespace Lux.API.Controllers
public FileController(DataLayerServices DLService, IOfferRowService iORService, ImageCacheService imgServ, ILogger<ImageController> logger)
{
_imgService = imgServ;
_ORService = iORService;
_OffRService = iORService;
_DSService = DLService;
_logger = logger;
}
@@ -133,12 +133,12 @@ namespace Lux.API.Controllers
// a seconda del tipo leggo da 2 aree db diverse...
if (objType == "POR")
{
var currPOR = await _DSService.OrderRowGetByUID(id);
var currPOR = await _OrdRService.GetByUidAsync(id);
jsonContent = currPOR?.SerStruct ?? "";
}
else if (objType == "SOR")
{
var currSOR = await _ORService.GetByUidAsync(id);
var currSOR = await _OffRService.GetByUidAsync(id);
jsonContent = currSOR?.SerStruct ?? "";
}
// se NON vuoto --> converto byte stream...
@@ -189,7 +189,8 @@ namespace Lux.API.Controllers
#region Private Properties
private DataLayerServices _DSService { get; set; }
private IOfferRowService _ORService { get; set; }
private IOfferRowService _OffRService { get; set; }
private IOrderRowService _OrdRService { get; set; }
private ImageCacheService _imgService { get; set; }
#endregion Private Properties