That should handle it. I agree with Mike, watching some basic MVC videos on Pluralsight will help.
>OK, still trying to get the hang of all these new things I'm learning at once.
>
>So in my RouteController I have this:
>
>
> public IEnumerable<Route> GetRoutes()
> {
> return db.Routes.AsEnumerable();
> }
>
>This is where I need to add in the code to sort the routes?
>
>This is what I've tried for the sorting and it looks like it works:
>
>
public IEnumerable<Route> GetRoutes()
> {
> var routes = db.Routes.OrderBy(r => r.rte_name);
> return routes.AsEnumerable();
> //return db.Routes.AsEnumerable();
> }
>
>Thanks
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer