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