public IActionResult Post(AccountVM accountToCreate)
        {
            var failedValidations = accountToCreate.IsValid();

            if (failedValidations.Any())
            {
                return(BadRequest(new { FailedValidations = failedValidations }));
            }

            //TODO: Add user to authentication server
            string identityProviderId = Guid.NewGuid().ToString();

            IUserAccount userAccount = accountToCreate.ToUserAccount();

            userAccount.IdentityProviderId = identityProviderId;
            userAccount.AccountType        = AccountTypes.RootAccount;

            IUserAccount createdAccount = _accountsService.Create(userAccount);

            return(Ok(createdAccount));
        }