public async Task <string> PostJwe([FromBody] CreateJweRequest createJweRequest) { if (createJweRequest == null) { throw new ArgumentNullException(nameof(createJweRequest)); } return(await _jweActions.CreateJwe(createJweRequest.ToParameter())); }
public static CreateJweParameter ToParameter(this CreateJweRequest createJweRequest) { return(new CreateJweParameter { Alg = createJweRequest.Alg, Enc = createJweRequest.Enc, Jws = createJweRequest.Jws, Kid = createJweRequest.Kid, Password = createJweRequest.Password, Url = createJweRequest.Url }); }