Exemplo n.º 1
0
        public IList <Route> GetRoute(MODEL.PinkerType pinkerType, bool finddriver, string start, string dest)
        {
            IQuery query = session.CreateQuery("from Route r where r.Pinkertype="
                                               + (int)pinkerType + " and r.Driver=" + finddriver
                                               + " and StartLocation like '%" + start + "%'" + " and DestLocation like '%" + dest + "%'");
            IList <Route> routes = query.Future <Route>().ToList();

            return(routes);
        }
Exemplo n.º 2
0
 public IList <Route> GetRoute(MODEL.PinkerType pinkerType, bool finddriver, string start, string dest)
 {
     return(dalroute.GetRoute(pinkerType, finddriver, start, dest));
 }