void GetBillTable(out GetBillTableResponse getBillTableResponse) { getBillTableResponse = null; var getBillTableCmdHandler = new GetBillTableCmdHandler(this); GetBillTableResponse response; if (getBillTableCmdHandler.Handle(out response) == true) { getBillTableResponse = response; } }
public static bool GetBillTypeByBillTypeId( byte billTypeId, GetBillTableResponse response, out BillType billType) { bool ret = false; billType = null; Debug.Assert(response != null, "response != null"); Debug.Assert(response.BillTypes != null, "response.BillTypes != null"); Debug.Assert(billTypeId >= 0, "billTypeId >= 0"); //find in bill table bill type by id billType = Array.Find <BillType>(response.BillTypes, delegate(BillType bt) { return(bt.TableIndex == billTypeId); }); if (billType != null) { ret = true; } return(ret); }