public void ModifyRole(MafRole role) { var oldRole = _repo.GetById <MafRole>(role.Name); var ch = _repo.NewTracker(); ch.RegistUpdate(oldRole); oldRole = role; _repo.Commit(ch); }
public void AddRole(MafRole role) { _repo.Insert(role); }