public async Task SetScopeAsync(SetApiScopeViewModel vm) { var command = _mapper.Map <SetApiScopeCommand>(vm); await _bus.SendCommand(command); }
public async Task <ActionResult <JsonResponse <bool> > > AddScope([FromBody] SetApiScopeViewModel model) { await _apiService.SetScopeAsync(model); return(JsonResponse(true)); }