public void ModifyUser(MafUser user) { var oldUser = _repo.GetById <MafUser>(user.Name); var ch = _repo.NewTracker(); ch.RegistUpdate(oldUser); oldUser = user; _repo.Commit(ch); }
public void AddUser(MafUser user) { _repo.Insert(user); }