Example #1
0
 public static void DeleteDataControl(int pId)
 {
     try
     {
         if (DDataControl.FetchByID(pId) != null)
         {
             DDataControl.Delete(pId);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
 public static void DeleteDevice(int pId)
 {
     try
     {
         if (DDeviceList.FetchByID(pId) != null)
         {
             new Delete().From(DDeviceList.Schema)
             .Where(DDeviceList.Columns.DeviceId).IsEqualTo(pId)
             .Execute();
             DDataControl.Delete(DDataControl.Columns.DeviceId, pId);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public bool Delete(object DataControlId)
 {
     return(DDataControl.Delete(DataControlId) == 1);
 }