예제 #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));
        }
예제 #2
0
 public List <Historial> ListarVehiculosParqueados()
 {
     return(ConversorHistorial.AModelo(realm.All <EntidadHistorial>().Where(h => h.FechaSalida == null).ToList()));
 }
예제 #3
0
 public Historial IngresarVehiculo(Historial historial)
 {
     realm.Add(ConversorHistorial.AEntidad(historial));
     return(historial);
 }
예제 #4
0
 public List <Historial> ListarHistoriales()
 {
     return(ConversorHistorial.AModelo(realm.All <EntidadHistorial>().ToList()));
 }
예제 #5
0
 public double ActualizarHistorial(Historial historial)
 {
     realm.Add(ConversorHistorial.AEntidad(historial));
     return(historial.Cobro);
 }