Пример #1
0
        public Entidades.Cargos RecuperarTodos()
        {
            Datos.Cargos oDatos;

            try
            {
                oDatos = new Datos.Cargos();
                return oDatos.RecuperarTodos();
            }

            finally
            {
                oDatos = null;
            }
        }
Пример #2
0
        public void Modificar(Entidades.Cargo item)
        {
            Datos.Cargos oDatos;

            try
            {
                oDatos = new Datos.Cargos();
                oDatos.Modificar(item);
            }

            finally
            {
                oDatos = null;
            }
        }
Пример #3
0
        public void Borrar(int IdCargo)
        {
            Datos.Cargos oDatos;

            try
            {
                oDatos = new Datos.Cargos();
                oDatos.Borrar(IdCargo);
            }

            finally
            {
                oDatos = null;
            }
        }
Пример #4
0
        public bool ExisteCargo(int id)
        {
            Datos.Cargos oDatos;

            try
            {
                oDatos = new Datos.Cargos();
                return oDatos.ExisteCargo(id);
            }

            finally
            {
                oDatos = null;
            }
        }
Пример #5
0
        public int Agregar(Entidades.Cargo item)
        {
            Datos.Cargos oDatos;

            try
            {
                oDatos = new Datos.Cargos();
                return oDatos.Agregar(item);
            }

            finally
            {
               oDatos = null;
            }
        }