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)); }
public async Task <IActionResult> Update(string app, string language, [FromBody] UpdateLanguageDto request) { await CommandBus.PublishAsync(request.ToCommand(ParseLanguage(language))); return(NoContent()); }