Beispiel #1
0
        public static List <WSNovedad.NovedadCambioEstado> Novedades_CambioEstadoSC_Histo_TT(Int64 idNovedad, out string mensajeError)
        {
            WSNovedad.NovedadWS oServicio = new WSNovedad.NovedadWS();
            oServicio.Url         = ConfigurationManager.AppSettings[oServicio.GetType().ToString()];
            oServicio.Credentials = System.Net.CredentialCache.DefaultCredentials;
            List <WSNovedad.NovedadCambioEstado> result = null;

            try
            {
                log.DebugFormat("Ejecuta Traer_Novedades_CTACTE_Total ({0})", idNovedad);

                result = oServicio.Novedades_CambioEstadoSC_Histo_TT(idNovedad, out mensajeError).ToList();
                log.DebugFormat("Obtuve {0} registros de Novedades_CambioEstadoSC_Histo_TT", result.Count);
                return(result);
            }
            catch (Exception ex)
            {
                log.Error(string.Format("ERROR Ejecución:{0}->{1} - Error:{2}->{3}", DateTime.Now,
                                        "Novedades_CambioEstadoSC_Histo_TT", ex.Source, ex.Message));
                throw;
            }
        }