public IActionResult CreateNewAccount(CreateAccounViewModel model) { IAccountCollection accountCollection = _accountFactory.AccountCollection(); accountCollection.CreateAccount(new Account(model.Name, model.Password, model.IsActive)); return(RedirectToAction("Index", "Account")); }