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