public void CreateNewAccount(MemberLoginDetails details)
        {
            if (_accounts.AccountExists(details.UserName))
            {
                throw new Exception("Account already exists");
            }

            string salt = _hasher.GetNewSalt();

            Account account = new Account()
            {
                DateCreated = DateTime.Now,
                UserName    = details.UserName,
                Password    = _hasher.SaltedPassword(details.Password, salt),
                Salt        = salt
            };

            _accounts.AddAccount(account);
        }