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); }
public PagedViewModel() { PagingAndSortingParameters = new PagingAndSortingParameters(); }