Exemple #1
0
        public static List <VOPersona> CatalogoPersona(int[] cargo, bool?disp)
        {
            List <VOPersona> catalogo = new List <VOPersona>();

            foreach (int c in cargo)
            {
                catalogo.AddRange(BLLPersona.ConsultarPersonasPorCargo(c.ToString(), disp));
            }
            return(catalogo);
        }
Exemple #2
0
 public static void InsertarSalida(VOSalida salida)
 {
     try
     {
         VOPersona capitan = new VOPersona(salida.IdCapitan, null, null, null, null, null, false, null);
         BLLPersona.Actualizar(capitan);
         VOBarco barco = new VOBarco(salida.IdBarco, null, null, null, null, null, null, false);
         BLLBarco.Actualizar(barco);
         DALSalida.InsertarSalida(salida);
     }
     catch (Exception ex)
     {
         throw new ArgumentException("Error al insertar el registro de salida");
     }
 }