public IActionResult SaveEdit(ShowAllAccountsViewModel model) { IAccountCollection accountCollection = _accountFactory.AccountCollection(); accountCollection.Update(new Account(model.AccountId, model.Name, model.Password, model.Active)); return(RedirectToAction("Index", "Account")); }