//Get:/Users/Get/{pageNum}/{pageSize?}/{sortBy?}/{isSortDesc?}
        public IEnumerable <Member> GetWithPagAndSort(int pageNum, int pageSize, string sortBy, bool isSortDesc = false)
        {
            if (sortBy == "null")
            {
                return(_paginationService.GetPageRecords(Get(), pageSize, pageNum));
            }
            IEnumerable <Member> members = _repo.GetMembers().Sort(sortBy, isSortDesc);

            if (isSortDesc)
            {
                members = members.ToList().Reverse <Member>();
            }
            return(_paginationService.GetPageRecords(members, pageSize, pageNum));
        }