Completato sostituzione metodi (DA TESTARE!!!)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user