Example #1
0
        public static EntidadHistorial AEntidad(Historial historial)
        {
            EntidadHistorial entidadHistorial = new EntidadHistorial();

            if (historial != null)
            {
                entidadHistorial.Vehiculo     = ConversorVehiculo.AEntidadVehiculo(historial.Vehiculo);
                entidadHistorial.FechaIngreso = historial.FechaIngreso;
                entidadHistorial.FechaSalida  = historial.FechaSalida;
                entidadHistorial.Cobro        = historial.Cobro;

                return(entidadHistorial);
            }

            return(null);
        }
Example #2
0
 public static Historial AModelo(EntidadHistorial entidadHistorial)
 {
     return(entidadHistorial == null ? null :
            new Historial(ConversorVehiculo.AModelo(entidadHistorial.Vehiculo),
                          entidadHistorial.FechaIngreso, entidadHistorial.FechaSalida, entidadHistorial.Cobro));
 }