Geeks With Blogs
.Nettuce Code Salad February 2011 Entries
Fluent MVC Route Testing Helper
static class GetUrlFromController<T> where T : Controller { public static string WithAction(Expression<Fu... ActionResult>> expression) { var controllerName = typeof(T).Name.Replace("Con... string.Empty); var methodCall = (MethodCallExpression)expre... var actionName = methodCall.Method.Name; var routeValueDictionary = new RouteValueDictionary(); for (var i = 0; i < methodCall.Arguments.Count; i++) { routeValueDictionary.Add(me... ......

Posted On Tuesday, February 15, 2011 9:12 PM

Copyright © Jon Canning | Powered by: GeeksWithBlogs.net