Пример #1
0
        public async Task <IActionResult> PutPreviewUrls(string app, string name, [FromBody] ConfigurePreviewUrlsDto request)
        {
            var command = request.ToCommand();

            var response = await InvokeCommandAsync(command);

            return(Ok(response));
        }
Пример #2
0
        public async Task <IActionResult> PutPreviewUrls(string app, string name, [FromBody] ConfigurePreviewUrlsDto request)
        {
            await CommandBus.PublishAsync(request.ToCommand());

            return(NoContent());
        }