public FinanceResponse Find(VoucherRequest request) { var voucher = new Voucher(); var id = service.Linked(request.id, request.Linked); if (id == 0) { throw new FinanceException(FinanceResult.RECORD_NOT_EXIST); } voucher.header = service.FindHeader(id); voucher.entries = service.FindEntrys(id); voucher.udefenties = service.FindUdefEntrys(id); return(new VoucherResponse { Content = voucher }); }