public static BasicList <SortInfo> StartSorting(string property, EnumOrderBy order) { SortInfo sort = new(); sort.Property = property; sort.OrderBy = order; return(new() { sort }); }
public static BasicList <SortInfo> Append(this BasicList <SortInfo> sortList, string property, EnumOrderBy orderBy) { sortList.Add(new SortInfo() { Property = property, OrderBy = orderBy }); return(sortList); }