public async Task <ActionResult <int> > PostAccount([FromBody] AccountWithCustomerId account) { try { account.account.Customer = await serviceManager.GetCustomer(account.customerId); return(Ok(await serviceManager.CreateAccount(account.account))); } catch { return(NotFound()); } }