示例#1
0
 public int Add(ClientShare entity) => ClientsShares.Add(entity).ClientId;
示例#2
0
 public void Remove(ClientShare entity) => ClientsShares.Remove(entity);
示例#3
0
 public void Update(ClientShare entity)
 {
     var modified = ClientsShares.First(m => m.ClientId == entity.ClientId && m.ShareId == entity.ShareId).Amount = entity.Amount;
 }