public static PagerOptionsBuilder AddFromQueryString( this PagerOptionsBuilder builder, HttpRequestBase request ) { foreach (string item in request.QueryString) { if (item != "page") { builder.AddRouteValue(item, request.QueryString[item]); } } return builder; }
public static ActionResult WithId(this ActionResult result, IDictionary<string, object> viewData) { return result.AddRouteValue("id", viewData["id"]); }
public static ActionResult WithId(this ActionResult result, User user) { return result.AddRouteValue("id", user.Id); }
public static ActionResult WithId(this ActionResult result, Family family) { return result.AddRouteValue("id", family.Id); }
public static ActionResult WithId(this ActionResult result, string id) { return result.AddRouteValue("id", id); }