예제 #1
0
파일: Sorter.cs 프로젝트: netsouls/eCentral
 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>();
 }
예제 #2
0
 public static Sorter Sorting(this HtmlHelper helper, ISortableModel sortable )
 {
     return new Sorter(sortable, helper.ViewContext);
 }