public async Task <IActionResult> CreateInternalAccount( [FromRoute] Guid organizationId) { var account = await _accountService .CreateInternalAccount(_accountManager); return(Ok(account)); }
public async Task <IActionResult> CreateInternalAccount( [FromRoute] Guid organizationId, [FromRoute] Guid accountManagerId) { var account = await _accountService .CreateInternalAccount(new OrganizationAccountManager() { AccountManagerId = accountManagerId, OrganizationId = organizationId }); return(Ok(account)); }