Пример #1
0
 internal int Delete()
 {
     try
     {
         using (EmployeeTerritoriesDL _employeeterritoriesdlDL = new EmployeeTerritoriesDL())
         {
             return(_employeeterritoriesdlDL.Delete(this));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
Пример #2
0
 internal int InsertAndGetId()
 {
     try
     {
         using (EmployeeTerritoriesDL _employeeterritoriesdlDL = new EmployeeTerritoriesDL())
         {
             return(_employeeterritoriesdlDL.InsertAndGetId(this));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }