/// <summary> /// Enables the RouteCollection to add Data Services. /// </summary> /// <typeparam name="TService">Data Service type implementation.</typeparam> /// <param name="routes">RouteCollection currently being extended.</param> /// /// <param name="prefix">Prefix to be used as service root.</param> public static void AddDataServiceRoute <TService>(this RouteCollection routes, string prefix) { routes.AddDataServiceRoute(typeof(TService), prefix); }
/// <summary> /// Enables the RouteCollection to add Data Services. /// </summary> /// <typeparam name="TService">Data Service type implementation.</typeparam> /// <param name="routes">RouteCollection currently being extended.</param> public static void AddDataServiceRoute <TService>(this RouteCollection routes) { routes.AddDataServiceRoute(typeof(TService), string.Empty); }