コード例 #1
0
        private IEnumerable <UserSummaryViewData> FetchData(ViewType viewType)
        {
            if (viewType == ViewType.ShowAll)
            {
                return(RegisterUserBLL.GetAllPendingUniqueIdRequestsByState(this.AccountInfo.StateFIPS));
            }

            else if (viewType == ViewType.Pending)
            {
                return(RegisterUserBLL.GetPendingUniqueIdRequestsForState(this.AccountInfo.StateFIPS));
            }

            else if (viewType == ViewType.Revoked)
            {
                return(RegisterUserBLL.GetRevokedPendingUniqueIdRequestsByState(this.AccountInfo.StateFIPS));
            }

            else
            {
                return(null);
            }
        }