Пример #1
0
 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;
 }
Пример #2
0
 public Boolean RemoveGroup(ScreenGroups groupName)
 {
     InitDB();
     ScreenGroups deleteGroup = new ScreenGroups();
     deleteGroup.LoadByPrimaryKey((long)groupName.Id);
     deleteGroup.MarkAsDeleted();
     deleteGroup.Save();
     return true;
 }