// GET api/<controller> public IEnumerable <Models.Trip> Get() { return(_Repo.Get()); }
public static IEnumerable <Models.Trip> grid_GetData() { Models.TripRepository _Repo = new Models.TripRepository(); return(_Repo.Get().ToList()); }
// 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()); }