Exemplo n.º 1
0
        public async Task <IActionResult> CreateMessageContract(string topicId, [FromBody] MessageContractInput input)
        {
            try
            {
                await _capabilityServiceClient.CreateMessageContract(input.Type, input.Description, input.Content,
                                                                     topicId);
            }
            catch (HttpRequestException)
            {
                return(BadRequest());
            }

            return(NoContent());
        }