public void Insert(Data.PayrollContract payrollContract)
 {
     try
     {
         if (payrollContract.ID == Guid.Empty)
         {
             payrollContract.ID = Guid.NewGuid();
         }
         this.Table.Add(payrollContract);
         this.SubmitChanges();
     }
     catch
     {
         throw;
     }
 }
 public void Save(Data.PayrollContract PayrollContract)
 {
     try
     {
         if (PayrollContract.ID == Guid.Empty)
         {
             this.Insert(PayrollContract);
         }
         else
         {
             this.SubmitChanges();
         }
     }
     catch
     {
         throw;
     }
 }