public static async Task <SalesEstado> VerificarPrecioArticulo(TS_BEPromotionInput input)
        {
            SalesEstado Respuesta = SalesEstado.ErrorSistema;
            await Task.Run(() => {
                TS_SISalesClient cliente = null;
                try
                {
                    cliente = new TS_SISalesClient(Helper.ServicioSoapBinding(), new EndpointAddress(Config.Services.Sales));
                    VerificarPrecioArticuloCompleted(cliente.VERIFICAR_PROMOCION(input));
                    Respuesta = SalesEstado.EsperandoRespuesta;
                }
                catch
                {
                    Respuesta = SalesEstado.ErrorSistema;
                }
                finally
                {
                    if (cliente != null)
                    {
                        if (cliente.State == CommunicationState.Opened)
                        {
                            cliente.Close();
                        }
                    }
                }
            });

            return(Respuesta);
        }
Beispiel #2
0
 public TSSales(SalesEstado resultado, TS_BEPromotionInput promotion)
 {
     EstadoRespuesta = resultado;
     vPromotion      = promotion;
 }