示例#1
0
 public void SetClientsBorrows(Client client)
 {
     if (TotalBorrows == null)
     {
         return;
     }
     ClientsBorrows = TotalBorrows.FindAll((bo) => client.Id == bo.ClientsId);
 }
示例#2
0
 public void Return(Client client)
 {
     client.IsBorrowing = false;
     Borrow[] clientBorrows = TotalBorrows.FindAll((bo) => client.Id == bo.ClientsId).ToArray();
     clientBorrows[clientBorrows.Length - 1].IsBorrowActive = false;
 }