public void Insert(string ModuleName, int?ParentID) { DDModule item = new DDModule(); item.ModuleName = ModuleName; item.ParentID = ParentID; item.Save(UserName); }
public void Update(int ModuleID, string ModuleName, int?ParentID) { DDModule item = new DDModule(); item.MarkOld(); item.IsLoaded = true; item.ModuleID = ModuleID; item.ModuleName = ModuleName; item.ParentID = ParentID; item.Save(UserName); }