public Boolean InsertScreenGroup(ScreenGroups scrg) { InitDB(); ScreenGroups l = new ScreenGroups(); l.Name = scrg.Name; l.Description = scrg.Description; Boolean functionResult = false; try { l.Save(); functionResult = true; } catch (Exception ex) { functionResult = false; } return functionResult; }
public Boolean RemoveGroup(ScreenGroups groupName) { InitDB(); ScreenGroups deleteGroup = new ScreenGroups(); deleteGroup.LoadByPrimaryKey((long)groupName.Id); deleteGroup.MarkAsDeleted(); deleteGroup.Save(); return true; }