예제 #1
0
        public override object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
        {
            object model      = base.BindModel(controllerContext, bindingContext);
            var    pagedModel = (PagingAndSortingParameters)model;

            if (pagedModel == null)
            {
                pagedModel = new PagingAndSortingParameters();
            }

            return(pagedModel);
        }
예제 #2
0
 public PagedViewModel()
 {
     PagingAndSortingParameters = new PagingAndSortingParameters();
 }
예제 #3
0
 public PagedViewModel()
 {
     PagingAndSortingParameters = new PagingAndSortingParameters();
 }