예제 #1
0
 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;
 }
예제 #2
0
 public static ActionResult WithId(this ActionResult result, IDictionary<string, object> viewData)
 {
     return result.AddRouteValue("id", viewData["id"]);
 }
예제 #3
0
 public static ActionResult WithId(this ActionResult result, User user)
 {
     return result.AddRouteValue("id", user.Id);
 }
예제 #4
0
 public static ActionResult WithId(this ActionResult result, Family family)
 {
     return result.AddRouteValue("id", family.Id);
 }
예제 #5
0
 public static ActionResult WithId(this ActionResult result, string id)
 {
     return result.AddRouteValue("id", id);
 }