public IActionResult CreateAccount(AdminAccountCreateView model)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    //save account to DB
                    var accountService = _logicFactory.GetAccountService();

                    accountService.Add(new Account
                    {
                        AccountName     = model.AccountName,
                        AccountEmail    = model.AccountEmail,
                        AccountPassword = model.AccountPassword,
                        AccountPlayer   = new Player {
                            PlayerID = model.PlayerID, PlayerName = model.PlayerName, PlayerPlatformID = model.PlayerPlatformID
                        }
                    });
                    //return success
                    return(PartialView("Account/_AccountSuccess"));
                }
                catch (Exception ex)
                {
                    _logger.LogError($"Something went wrong trying to add a new account to the database. |Message: {ex.Message} |Stacktrace: {ex.StackTrace}");
                    return(NotFound());
                    //return errorpage
                }
            }
            else
            {
                return(PartialView("Account/_CreateAccountPartial", model));
            }
        }
        public IActionResult CreateAccount()
        {
            AdminAccountCreateView model = new AdminAccountCreateView();

            //return PartialView("_CreateTeamFormPartial");
            return(PartialView("Account/_CreateAccountPartial", model));
        }