public Boolean Delete(tbl_000_SECTION record) { try { if (record == null) { throw new Exception("Invalid Parameter!"); } if (!compdal.IsExistID(record.SECTIONCODE)) { throw new Exception("Record does not exist!"); } return(compdal.Delete(record)); } catch (Exception ex) { throw ex; } }
public int Delete(int id) { SectionDAL sectionDl = new SectionDAL(); return(sectionDl.Delete(id)); }