public void Delete(Data.PayrollPersonSentence DeletedItem) { try { Table.Remove(DeletedItem); this.SubmitChanges(); } catch { throw; } }
public void Insert(Data.PayrollPersonSentence _payrollPersonSentence) { try { if (_payrollPersonSentence.ID == Guid.Empty) { _payrollPersonSentence.ID = Guid.NewGuid(); } this.Table.Add(_payrollPersonSentence); this.SubmitChanges(); } catch { throw; } }