Rimosso servizio SaveMtbColt non più utilizzato
This commit is contained in:
parent
a94b2fa3f6
commit
e6bfdb18c5
@ -12,8 +12,6 @@ namespace Integry_Smart_Gateway.Core.RestConsumer.Controller;
|
||||
public interface IWarehouseControllerService
|
||||
{
|
||||
|
||||
Task<MtbColt?> SaveMtbColt(MtbColt mtbColt);
|
||||
|
||||
Task<MtbColt?> CreateUdcProduzione(CreateUdcProduzioneRequest createUdcProduzioneRequest);
|
||||
|
||||
Task<MtbColt?> CreateEmptyMtbColt(OrdineLavorazioneDTO ordineLavorazione);
|
||||
|
||||
@ -20,31 +20,6 @@ public class WarehouseControllerService(
|
||||
IRestConsumerService restConsumerService)
|
||||
: 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)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user