Exemple #1
0
 public static void DeleteDataControl(int pId)
 {
     try
     {
         if (DDataControl.FetchByID(pId) != null)
         {
             DDataControl.Delete(pId);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #2
0
 public static void UpdateDataControl(DDataControl pitems)
 {
     try
     {
         if (DDataControl.FetchByID(pitems.DataControlId) != null)
         {
             pitems.IsNew = false;
             pitems.Save();
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }