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