예제 #1
0
        public async Task <IActionResult> PutLanguage(string app, string language, [FromBody] UpdateLanguageDto request)
        {
            var command = request.ToCommand(ParseLanguage(language));

            var response = await InvokeCommandAsync(command);

            return(Ok(response));
        }
예제 #2
0
        public async Task <IActionResult> Update(string app, string language, [FromBody] UpdateLanguageDto request)
        {
            await CommandBus.PublishAsync(request.ToCommand(ParseLanguage(language)));

            return(NoContent());
        }