public async Task CreateAsync(CreateIdentityResourceViewModel vm) { var model = _mapper.Map <IdentityResource>(vm); var command = _mapper.Map <CreateIdentityResourceCommand>(model); await _bus.SendCommand(command); }
public async Task <ActionResult <JsonResponse <bool> > > Create([FromBody] CreateIdentityResourceViewModel model) { await _identityResourceService.CreateAsync(model); return(JsonResponse(true)); }