// GET api/<controller>
 public IEnumerable <Models.Trip> Get()
 {
     return(_Repo.Get());
 }
示例#2
0
 public static IEnumerable <Models.Trip> grid_GetData()
 {
     Models.TripRepository _Repo = new Models.TripRepository();
     return(_Repo.Get().ToList());
 }
示例#3
0
 // The return type can be changed to IEnumerable, however to support
 // paging and sorting, the following parameters must be added:
 //     int maximumRows
 //     int startRowIndex
 //     out int totalRowCount
 //     string sortByExpression
 public IQueryable <Models.Trip> grid_GetData()
 {
     return(_Repo.Get());
 }