Exemple #1
0
 public Task <int> SaveItemAsync(Alloy item)
 {
     if (item.AlloyID != 0)
     {
         return(database.UpdateAsync(item));
     }
     else
     {
         return(database.InsertAsync(item));
     }
 }
Exemple #2
0
 public Task <int> DeleteItemAsync(Alloy item)
 {
     return(database.DeleteAsync(item));
 }