public void Insert(string BranchID, int GroupID, int RoleID, int ParentRoleID)
        {
            SysGroupRole item = new SysGroupRole();

            item.BranchID = BranchID;

            item.GroupID = GroupID;

            item.RoleID = RoleID;

            item.ParentRoleID = ParentRoleID;


            item.Save(UserName);
        }
        public void Update(string BranchID, int GroupID, int RoleID, int ParentRoleID)
        {
            SysGroupRole item = new SysGroupRole();

            item.MarkOld();
            item.IsLoaded = true;

            item.BranchID = BranchID;

            item.GroupID = GroupID;

            item.RoleID = RoleID;

            item.ParentRoleID = ParentRoleID;

            item.Save(UserName);
        }
 public bool Destroy(object BranchID)
 {
     return(SysGroupRole.Destroy(BranchID) == 1);
 }
 public bool Delete(object BranchID)
 {
     return(SysGroupRole.Delete(BranchID) == 1);
 }