Example #1
0
        protected static ReadOnlyUrl GetUrl(ReadOnlyUrl baseUrl, MemberSortOrder sortOrder)
        {
            var url = baseUrl.AsNonReadOnly();

            url.QueryString.Add("SortOrder", sortOrder.ToString());
            return(url);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }
Example #4
0
        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);
        }
Example #5
0
        private static string GetText(MemberSortOrder sortOrder)
        {
            switch (sortOrder)
            {
            case MemberSortOrder.DateUpdated:
                return("Date updated");

            case MemberSortOrder.FirstName:
                return("First name");

            default:
                return(sortOrder.ToString());
            }
        }