예제 #1
0
 public static MvcHtmlString Pager(this HtmlHelper html, IPageableViewModel model, string paramName, object parameters = null)
 {
     return Pager(html, model.Page, model.PageSize, model.TotalRows, x => GetDefaultPageUrl(x, paramName, parameters));
 }
예제 #2
0
파일: Pager.cs 프로젝트: roustr1/MainSite
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="model">Model</param>
 /// <param name="context">ViewContext</param>
 public Pager(IPageableViewModel model, ViewContext context)
 {
     this.model            = model;
     viewContext           = context;
     booleanParameterNames = new List <string>();
 }
예제 #3
0
 public static MvcHtmlString Pager(this HtmlHelper html, IPageableViewModel model, PagerSettings settings)
 {
     return Pager(html, model.Page, model.PageSize, model.TotalRows, x => GetDefaultPageUrl(x), settings);
 }
예제 #4
0
 public static Pager Pager(this IHtmlHelper helper, IPageableViewModel pagination)
 {
     return(new Pager(pagination, helper.ViewContext));
 }