示例#1
0
 public static GetJwsParameter ToParameter(this GetJwsRequest getJwsRequest)
 {
     return(new GetJwsParameter
     {
         Jws = getJwsRequest.Jws,
         Url = getJwsRequest.Url
     });
 }
示例#2
0
        public async Task <JwsInformationResponse> GetJws([FromQuery] GetJwsRequest getJwsRequest)
        {
            if (getJwsRequest == null)
            {
                throw new ArgumentNullException(nameof(getJwsRequest));
            }

            var result = await _jwsActions.GetJwsInformation(getJwsRequest.ToParameter());

            return(result.ToDto());
        }