Пример #1
0
 public async Task <Certificate> StartPrivate(StartCertificatePrivateRequest request)
 {
     using (var httpRequest = new HttpRequestMessage(HttpMethod.Post, "api/v1/certificates/startprivate"))
     {
         return(await PostPutRequestWithResponse <StartCertificatePrivateRequest, Certificate>(httpRequest, request));
     }
 }
Пример #2
0
 public async Task <IActionResult> StartPrivate([FromBody] StartCertificatePrivateRequest request)
 {
     return(Ok(await _mediator.Send(request)));
 }