public async Task SetSecretAsync(SetApiSecretViewModel vm) { var command = _mapper.Map <SetApiSecretCommand>(vm); await _bus.SendCommand(command); }
public async Task <ActionResult <JsonResponse <bool> > > AddSecret([FromBody] SetApiSecretViewModel model) { await _apiService.SetSecretAsync(model); return(JsonResponse(true)); }