public void Insert(SOTax entity) { try { if (entity.Id == Guid.Empty) { entity.Id = Guid.NewGuid(); } this.Table.Add(entity); this.SubmitChanges(); } catch { throw; } }
public void Save(SOTax entity) { try { if (entity.Id == Guid.Empty) { this.Insert(entity); } else { this.SubmitChanges(); } } catch { throw; } }