public IActionResult AddClientAccount(ClientAccountCreationDto clientAccount) { try { ClientAccount client = _mapper.Map <ClientAccount>(clientAccount); //TODO: Add role, AccountType //TODO: password hash client = _accountsServices.AddClientAccount(client); return(CreatedAtRoute("GetClient", new { id = client.Id }, client)); } catch (Exception ex) { return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message)); } }