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