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