Пример #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;
 }