public void Delete(City entity) { this.Repository.Delete(entity); this.Db.Save(); }
public void Update(City entity) { this.Repository.Update(entity); this.Db.Save(); }
public void Add(City entity) { this.Repository.Add(entity); this.Db.Save(); }
public void Save(City entity) { if(entity.Id==0){ this.Add(entity); }else{ this.Db.Save(); } }