http://localhost:51673/api/routes/cb877aed-25f1-4a5a-9883-5814a3dec5fdbut it is returning all routes. I set a break point in my controller and it is actually going into this code:
public IEnumerable<Route> Get() { return Uow.Routes.GetAll().OrderBy(r => r.rte_name); }not into this code:
public Route Get(Guid pk) { var route = Uow.Routes.GetById(pk); if (route != null) return route; throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.NotFound)); }My RouteConfig class is this:
public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); } }Do I have to make a change here to get it to work with Guids?