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 ScreenGroups CollectSCreenGroup(ScreenGroups s) { InitDB(); return null; }
public Boolean TESTInsertGroup(ScreenGroups s) { InitDB(); return true; }
public ScheduleCollection CollectScheduleForScreenGroup(ScreenGroups group, DateTime datetime) { InitDB(); ScheduleCollection scheduleCollection = new ScheduleCollection(); scheduleCollection.LoadAll(); return scheduleCollection; }
public Boolean RemoveGroup(ScreenGroups groupName) { InitDB(); ScreenGroups deleteGroup = new ScreenGroups(); deleteGroup.LoadByPrimaryKey((long)groupName.Id); deleteGroup.MarkAsDeleted(); deleteGroup.Save(); return true; }