Beispiel #1
0
        public IHttpActionResult IdentityVerification([FromUri] SearchPackage searchPackage, Guid playerId)
        {
            var identityVerifications = _playerQueries.GetPlayerIdentityVerifications(playerId);

            var dataBuilder = new SearchPackageDataBuilder <IdentityVerification>(searchPackage, identityVerifications);

            dataBuilder.Map(obj => obj.Id, obj => new object[]
            {
                obj.DocumentType.ToString(),
                obj.CardNumber,
                Format.FormatDate(obj.ExpirationDate, false),
                obj.VerificationStatus.ToString(),
                obj.VerifiedBy,
                Format.FormatDate(obj.DateVerified, false),
                obj.UnverifiedBy,
                Format.FormatDate(obj.DateUnverified, false),
                obj.UploadedBy,
                Format.FormatDate(obj.DateUploaded, false),
                obj.Remarks
            });

            return(Ok(dataBuilder.GetPageData(obj => obj.DocumentType)));
        }