//权限 public abstract int CreateNewAuthority(Authority newAuthority);
/*** ��̬���� ***/ /// <summary> /// ����Ȩ�� /// </summary> /// <returns></returns> public static int InsertAuthority(byte types, string url, string title, string note) { if (String.IsNullOrEmpty(title)) throw (new NullReferenceException("title")); Authority insertAuthority = new Authority(0, types, url, title, note); if (insertAuthority.Save()) { return insertAuthority.AuthorityId; } else { return 0; } }
public abstract bool UpdateAuthority(Authority newAuthority);