예제 #1
0
 public void Delete(City entity)
 {
     this.Repository.Delete(entity);
     this.Db.Save();
 }
예제 #2
0
 public void Update(City entity)
 {
     this.Repository.Update(entity);
     this.Db.Save();
 }
예제 #3
0
 public void Add(City entity)
 {
     this.Repository.Add(entity);
     this.Db.Save();
 }
예제 #4
0
 public void Save(City entity)
 {
     if(entity.Id==0){
         this.Add(entity);
     }else{
         this.Db.Save();
     }
 }