public override System.Web.Mvc.ActionResult Index(MvcContrib.UI.Grid.GridSortOptions sort, int page) { var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.Index); callInfo.RouteValueDictionary.Add("sort", sort); callInfo.RouteValueDictionary.Add("page", page); return(callInfo); }
/// <summary> /// Gets sort direction string from GridSortOptions object. /// </summary> /// <param name="sort"></param> /// <returns></returns> public static string GetSortDir(MvcContrib.UI.Grid.GridSortOptions sort) { return(sort.Direction == MvcContrib.Sorting.SortDirection.Ascending ? "ASC" : "DESC"); }