public List <CargoOrderData> RemoveAndGetApprovedFrom(CargoOrderDatabase database) { var approvedOrders = database.SpliceApproved(); SyncComponentsWithId(database.Id); return(approvedOrders); }
public bool TryGetAccount(int id, out CargoOrderDatabase account) { if (_accounts.TryGetValue(id, out var _account)) { account = _account; return(true); } account = null; return(false); }