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