Пример #1
0
        public async Task <CreateClaimPayload> CreateClaimAsync([Service] IClaimsService service, ClaimInput input,
                                                                CancellationToken cancellationToken)
        {
            var claim = input.Adapt <ApplicationClaimType>();

            await service.CreateAsync(claim, cancellationToken);

            return(new CreateClaimPayload
            {
                Claim = claim.Adapt <ClaimDto>()
            });
        }