protected static ReadOnlyUrl GetUrl(ReadOnlyUrl baseUrl, MemberSortOrder sortOrder) { var url = baseUrl.AsNonReadOnly(); url.QueryString.Add("SortOrder", sortOrder.ToString()); return(url); }
private ReadOnlyUrl GetBlockListUrl(BlockListType blockListType, MemberSortOrder sortOrder, bool isAscending) { var url = GetBlockListUrl(blockListType).AsNonReadOnly(); url.QueryString.Add("SortOrder", sortOrder.ToString()); url.QueryString.Add("SortOrderDirection", isAscending ? "SortOrderIsAscending" : "SortOrderIsDescending"); return(url); }
protected static ReadOnlyUrl Get(ReadOnlyUrl baseUrl, MemberSortOrder sortOrder, bool isAscending) { var url = baseUrl.AsNonReadOnly(); url.QueryString.Add("SortOrder", sortOrder.ToString()); url.QueryString.Add("SortOrderDirection", isAscending ? "SortOrderIsAscending" : "SortOrderIsDescending"); return(url); }
private ReadOnlyUrl GetFolderUrl(Guid folderId, MemberSortOrder sortOrder, bool isAscending) { var url = GetFolderUrl(folderId).AsNonReadOnly(); url.QueryString.Add("SortOrder", sortOrder.ToString()); url.QueryString.Add("SortOrderDirection", isAscending ? "SortOrderIsAscending" : "SortOrderIsDescending"); return(url); }
private static string GetText(MemberSortOrder sortOrder) { switch (sortOrder) { case MemberSortOrder.DateUpdated: return("Date updated"); case MemberSortOrder.FirstName: return("First name"); default: return(sortOrder.ToString()); } }