public IActionResult RegisterAccount(AccountDetailVM vm) { Account account = vmConverter.ViewModelToModel(vm); accountContainer.Insert(account); return(RedirectToAction("Index", "Forum")); }
public void AccountInsertTest(int id, string firstname, string lastname, string email, string password, string username, bool admin) { long result = container.Insert(new Account(id, firstname, lastname, email, password, username, admin)); Account account = container.GetById(1); Assert.Equal(account.Id, result); }