Exemplo n.º 1
0
        public Historial ObtenerVehiculoParqueado(string placa)
        {
            var historial = realm.All <EntidadHistorial>().Where(h => h.FechaSalida == null && h.Vehiculo.Placa == placa);

            return(ConversorHistorial.AModelo((EntidadHistorial)historial));
        }
Exemplo n.º 2
0
 public List <Historial> ListarVehiculosParqueados()
 {
     return(ConversorHistorial.AModelo(realm.All <EntidadHistorial>().Where(h => h.FechaSalida == null).ToList()));
 }
Exemplo n.º 3
0
 public Historial IngresarVehiculo(Historial historial)
 {
     realm.Add(ConversorHistorial.AEntidad(historial));
     return(historial);
 }
Exemplo n.º 4
0
 public List <Historial> ListarHistoriales()
 {
     return(ConversorHistorial.AModelo(realm.All <EntidadHistorial>().ToList()));
 }
Exemplo n.º 5
0
 public double ActualizarHistorial(Historial historial)
 {
     realm.Add(ConversorHistorial.AEntidad(historial));
     return(historial.Cobro);
 }