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