コード例 #1
0
 public async Task SetSecretAsync(SetApiSecretViewModel vm)
 {
     var command = _mapper.Map <SetApiSecretCommand>(vm);
     await _bus.SendCommand(command);
 }
コード例 #2
0
        public async Task <ActionResult <JsonResponse <bool> > > AddSecret([FromBody] SetApiSecretViewModel model)
        {
            await _apiService.SetSecretAsync(model);

            return(JsonResponse(true));
        }