Exemple #1
0
 public Task <int> SaveRecyclingAsync(Recyclingcentre recycling)
 {
     if (recycling.RcID != 0)
     {
         return(_database.UpdateAsync(recycling));
     }
     else
     {
         return(_database.InsertAsync(recycling));
     }
 }
Exemple #2
0
 public Task <int> DeleteRecyclingAsync(Recyclingcentre recycling)
 {
     return(_database.DeleteAsync(recycling));
 }