Beispiel #1
0
 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;
     }
 }
Beispiel #2
0
        public int Delete(int id)
        {
            SectionDAL sectionDl = new SectionDAL();

            return(sectionDl.Delete(id));
        }