public void Insert(string Name,int User,int? Parent) { UserLinkGroup item = new UserLinkGroup(); item.Name = Name; item.User = User; item.Parent = Parent; item.Save(UserName); }
public void Update(int UserLinkGroupID,string Name,int User,int? Parent) { UserLinkGroup item = new UserLinkGroup(); item.MarkOld(); item.IsLoaded = true; item.UserLinkGroupID = UserLinkGroupID; item.Name = Name; item.User = User; item.Parent = Parent; item.Save(UserName); }