Exemplo n.º 1
0
        public static Personal buscaPersonal(int idPersonal)
        {
            try
            {
                Personal       personal       = new Personal();
                GestorPersonal gestorPersonal = new GestorPersonal();
                personal = gestorPersonal.obtenerPersonal(idPersonal);

                return(personal);
            }
            catch (Exception e)
            {
                throw e;
            }
        }
Exemplo n.º 2
0
        public static List <Personal> cargarPersonal()
        {
            List <Personal> Personal = null;

            try
            {
                GestorPersonal gestorPersonal = new GestorPersonal();
                Personal = gestorPersonal.obtenerPersonal();
            }
            catch (Exception e)
            {
                Personal = null;
                throw e;
            }
            return(Personal);
        }