public async Task CreateTopic(CreateTopicRequest topic) { var content = new StringContent( content: _serializer.Serialize(topic), encoding: Encoding.UTF8, mediaType: "application/json" ); var response = await _client.PostAsync("/api/topics", content); response.EnsureSuccessStatusCode(); }
public async Task <IActionResult> CreateCapability([FromBody] CreateTopicRequest input) { await _topicClient.CreateTopic(input); return(NoContent()); }