public int Save(Role role) { if (role.id > 0) { _roleDao.Update(role); return role.id; } return _roleDao.Insert(role); }
public int Insert(Role role) { return _roleDao.Insert(role); }
public PlantUserVO(User user, Role role) { this.user = user; this.plantRole = role; }