Beispiel #1
0
 public async Task AddUserProductAsync(UserProduct userProduct)
 {
     _onDutyContent.Add(userProduct);
     await _onDutyContent.SaveChangesAsync();
 }
Beispiel #2
0
 public async Task RemoveUserProductAsync(UserProduct userProduct)
 {
     _onDutyContent.Remove(userProduct);
     await _onDutyContent.SaveChangesAsync();
 }