コード例 #1
0
 public static FluentRoute Zip(this FluentRoute route)
 {
     return(route.Section("Zip", "/{zip}", new KeyValuePair <string, object>?(new KeyValuePair <string, object>("zip", "^\\d{5}(-\\d{4})?$|^[a-zA-Z]\\d[a-zA-Z]-\\d[a-zA-Z]\\d$"))));
 }
コード例 #2
0
 public static FluentRoute BlogID(this FluentRoute route)
 {
     return(route.Section("BlogID", "/{id}", new KeyValuePair <string, object>?(new KeyValuePair <string, object>("id", "^[0-9]{1,}$"))));
 }
コード例 #3
0
 public static FluentRoute State(this FluentRoute route)
 {
     return(route.Section("State", "/{stateCode}", new KeyValuePair <string, object>?(new KeyValuePair <string, object>("stateCode", "^[a-zA-Z]{2}$"))));
 }
コード例 #4
0
 public static FluentRoute WithPaging(this FluentRoute route)
 {
     return(route.Section("WithPaging", "/page-{pageNumber}", new KeyValuePair <string, object>?(new KeyValuePair <string, object>("pageNumber", "^[0-9]{1,}$"))));
 }
コード例 #5
0
 public static FluentRoute PrintDirection(this FluentRoute route)
 {
     return(route.Section("PrintDirection", "/print-direction"));
 }
コード例 #6
0
 public static FluentRoute Print(this FluentRoute route)
 {
     return(route.Section("Print", "/print"));
 }
コード例 #7
0
 public static FluentRoute Name(this FluentRoute route)
 {
     return(route.Section("Name", "/{name}"));
 }
コード例 #8
0
 public static FluentRoute DetailsId(this FluentRoute route)
 {
     return(route.Section("DetailsId", "-id{id}", new KeyValuePair <string, object>?(new KeyValuePair <string, object>("id", "[0-9]{1,}"))));
 }
コード例 #9
0
 public static FluentRoute City(this FluentRoute route)
 {
     return(route.Section("City", "/{cityName}"));
 }