Exemple #1
0
 public IEnumerable <RouteModel> GetAllRoutes()
 {
     return(routeMapper.MapCollectionModels(routeRepository.GetAll()));
 }
Exemple #2
0
 public IEnumerable <OrderModel> GetOrders(string userId)
 {
     return(orderMapper.MapCollectionModels(orderRepository.Get(x => x.UserId == userId)));
 }
Exemple #3
0
 public IEnumerable <TripModel> GetAllTrips()
 {
     return(tripMapper.MapCollectionModels(tripRepository.GetAll()));
 }
Exemple #4
0
        public IEnumerable <TripModel> GetAllTrips()
        {
            var trips = tripMapper.MapCollectionModels(tripRepository.GetAll());

            return(trips.Where(x => x.NumbersOfFreeSeats.Count > 0));
        }