Exemple #1
0
        public static List <WSNovedad.KeyValue> Novedades_Baja(List <long> listNovedadesBaja, int idEstadoReg, string mac, string ip, string usuario)
        {
            WSNovedad.NovedadWS oServicio = new WSNovedad.NovedadWS();
            oServicio.Url         = ConfigurationManager.AppSettings[oServicio.GetType().ToString()];
            oServicio.Credentials = System.Net.CredentialCache.DefaultCredentials;
            List <WSNovedad.KeyValue> oListNovedades = null;

            try
            {
                oListNovedades = (oServicio.Novedades_Baja_Al_Cierre(listNovedadesBaja.ToArray(), idEstadoReg, mac, ip, usuario)).ToList <WSNovedad.KeyValue>();

                return(oListNovedades);
            }
            catch (Exception ex)
            {
                log.Error(string.Format("ERROR Ejecución :{0}->{1} - Error:{2}->{3}", DateTime.Now, System.Reflection.MethodBase.GetCurrentMethod(), ex.Source, ex.Message));
                throw ex;
            }
        }