public async Task <string> PostJws([FromBody] CreateJwsRequest createJwsRequest) { if (createJwsRequest == null) { throw new ArgumentNullException(nameof(createJwsRequest)); } return(await _jwsActions.CreateJws(createJwsRequest.ToParameter())); }
public static CreateJwsParameter ToParameter(this CreateJwsRequest createJwsRequest) { return(new CreateJwsParameter { Alg = createJwsRequest.Alg, Kid = createJwsRequest.Kid, Url = createJwsRequest.Url, Payload = createJwsRequest.Payload }); }