public IMDResponse <List <EntPerfil> > CObtenerPerfil([FromUri] int?iIdPerfil, [FromUri] bool bActivo, [FromUri] bool bBaja)
        {
            IMDResponse <List <EntPerfil> > response = new IMDResponse <List <EntPerfil> >();

            string metodo = nameof(this.CObtenerPerfil);

            logger.Info(IMDSerialize.Serialize(67823458359118, $"Inicia {metodo}([FromBody] int? iIdPerfil, bool bActivo, bool bBaja)", iIdPerfil, bActivo, bBaja));

            try
            {
                BusPerfil busPerfil = new BusPerfil();

                response = busPerfil.BObtenerPerfil(iIdPerfil, bActivo, bBaja);
            }
            catch (Exception ex)
            {
                response.Code    = 67823458359895;
                response.Message = "Ocurrió un error inesperado en el servicio al obtener los perfiles del sistema.";

                logger.Error(IMDSerialize.Serialize(67823458359895, $"Error en {metodo}([FromBody] int? iIdPerfil, bool bActivo, bool bBaja): {ex.Message}", iIdPerfil, bActivo, bBaja, ex, response));
            }
            return(response);
        }
        public IMDResponse <bool> CCreatePerfil([FromBody] EntPerfil entPerfil)
        {
            IMDResponse <bool> response = new IMDResponse <bool>();

            string metodo = nameof(this.CCreateModulo);

            logger.Info(IMDSerialize.Serialize(67823458338139, $"Inicia {metodo}([FromBody]EntPerfil entPerfil)", entPerfil));

            try
            {
                BusPerfil busPerfil = new BusPerfil();
                response = busPerfil.BSavePerfil(entPerfil);
            }
            catch (Exception ex)
            {
                response.Code    = 67823458122133;
                response.Message = "Ocurrió un error inesperado en el servicio al guardar el perfil.";

                logger.Error(IMDSerialize.Serialize(67823458338139, $"Error en {metodo}([FromBody]EntPerfil entPerfil): {ex.Message}", entPerfil, ex, response));
            }

            return(response);
        }