Rimosso servizio SaveMtbColt non più utilizzato
This commit is contained in:
@@ -12,8 +12,6 @@ namespace Integry_Smart_Gateway.Core.RestConsumer.Controller;
|
|||||||
public interface IWarehouseControllerService
|
public interface IWarehouseControllerService
|
||||||
{
|
{
|
||||||
|
|
||||||
Task<MtbColt?> SaveMtbColt(MtbColt mtbColt);
|
|
||||||
|
|
||||||
Task<MtbColt?> CreateUdcProduzione(CreateUdcProduzioneRequest createUdcProduzioneRequest);
|
Task<MtbColt?> CreateUdcProduzione(CreateUdcProduzioneRequest createUdcProduzioneRequest);
|
||||||
|
|
||||||
Task<MtbColt?> CreateEmptyMtbColt(OrdineLavorazioneDTO ordineLavorazione);
|
Task<MtbColt?> CreateEmptyMtbColt(OrdineLavorazioneDTO ordineLavorazione);
|
||||||
|
|||||||
@@ -20,31 +20,6 @@ public class WarehouseControllerService(
|
|||||||
IRestConsumerService restConsumerService)
|
IRestConsumerService restConsumerService)
|
||||||
: IWarehouseControllerService
|
: IWarehouseControllerService
|
||||||
{
|
{
|
||||||
public async Task<MtbColt?> SaveMtbColt(MtbColt mtbColt)
|
|
||||||
{
|
|
||||||
BaseRESTResponse<MtbColt>? response = null;
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
response = await restConsumerService
|
|
||||||
.Post<MtbColt>("mes_v2/createULLavorazione", null, mtbColt);
|
|
||||||
}
|
|
||||||
catch (System.Exception ex)
|
|
||||||
{
|
|
||||||
loggerService.LogError(ex, nameof(WarehouseControllerService));
|
|
||||||
}
|
|
||||||
|
|
||||||
var responseMtbColt = response?.Entity;
|
|
||||||
|
|
||||||
if (responseMtbColt != null)
|
|
||||||
{
|
|
||||||
mtbColt.NumCollo = responseMtbColt.NumCollo;
|
|
||||||
mtbColt.DataCollo = responseMtbColt.DataCollo;
|
|
||||||
}
|
|
||||||
else return null;
|
|
||||||
|
|
||||||
return mtbColt;
|
|
||||||
}
|
|
||||||
|
|
||||||
public async Task<MtbColt?> CreateUdcProduzione(CreateUdcProduzioneRequest createUdcProduzioneRequest)
|
public async Task<MtbColt?> CreateUdcProduzione(CreateUdcProduzioneRequest createUdcProduzioneRequest)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user