Skip to content

Commit

Permalink
In ServiceRoutesExtensions.cs: public static void Add<T>(this IServic…
Browse files Browse the repository at this point in the history
…eRoutes serviceRoutes, string restPath, ApplyTo verbs, params Expression<Func<T, object>>[] propertyExpressions) now returns IServiceRoutes.
  • Loading branch information
TorbenRahbekKoch committed Aug 28, 2013
1 parent 5b1891e commit 4319ddf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ServiceStack.ServiceInterface/ServiceRoutesExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ private static string PropertyName(LambdaExpression lambdaExpression)
return (lambdaExpression.Body is UnaryExpression ? (MemberExpression)((UnaryExpression)lambdaExpression.Body).Operand : (MemberExpression)lambdaExpression.Body).Member.Name;
}

public static void Add<T>(this IServiceRoutes serviceRoutes, string restPath, ApplyTo verbs, params Expression<Func<T, object>>[] propertyExpressions)
public static IServiceRoutes Add<T>(this IServiceRoutes serviceRoutes, string restPath, ApplyTo verbs, params Expression<Func<T, object>>[] propertyExpressions)
{
serviceRoutes.Add<T>(FormatRoute(restPath, propertyExpressions), verbs);
return serviceRoutes.Add<T>(FormatRoute(restPath, propertyExpressions), verbs);
}
}
}

0 comments on commit 4319ddf

Please sign in to comment.