Example #1
0
        public IMDResponse <EntCatalogos> CGetCatalogosSistema()
        {
            IMDResponse <EntCatalogos> response = new IMDResponse <EntCatalogos>();

            string metodo = nameof(this.CGetCatalogosSistema);

            logger.Info(IMDSerialize.Serialize(67823458645831, $"Inicia {metodo}"));

            try
            {
                BusCatalogo busCatalogo = new BusCatalogo();
                response = busCatalogo.BGetCatalogos();
            }
            catch (Exception ex)
            {
                response.Code    = 67823458646608;
                response.Message = "OcurriĆ³ un error inesperado";

                logger.Error(IMDSerialize.Serialize(67823458646608, $"Error en {metodo}: {ex.Message}", ex, response));
            }
            return(response);
        }
Example #2
0
 public void TGetCatalogos()
 {
     BusCatalogo busCatalogo = new BusCatalogo();
     var         res         = busCatalogo.BGetCatalogos();
     var         json        = JsonConvert.SerializeObject(res, Formatting.Indented);
 }