Esempio n. 1
0
 public Sorter(ISortableModel model, ViewContext context)
 {
     this.model = model;
     this.viewContext = context;
     this.urlBuilder = CreateDefaultUrl;
     this.booleanParameterNames = new List<string>();
     this.ignoreParameter = new List<string> { "_" };
     this.ignoreSortFor = new List<SortingEnum>();
 }
Esempio n. 2
0
 public static Sorter Sorting(this HtmlHelper helper, ISortableModel sortable )
 {
     return new Sorter(sortable, helper.ViewContext);
 }