Пример #1
0
 public int SaveOwner(Models.Owner owner)
 {
     if (owner.InternalId == 1)
     {
         return(database.Insert(owner));
     }
     else
     {
         return(database.Update(owner));
     }
 }
Пример #2
0
 public void UpdateOwner(Models.Owner owner)
 {
     database.Update(owner);
 }