public ClientePosicao GerarPosicaoCliente(List <Fundos> fundos, List <TesouroDireto> tesouroDireto, List <RendaFixa> rendaFixa) { var ret = new ClientePosicao(); ret.Investimentos.AddRange(fundos.Select(x => new Investimento(x))); ret.Investimentos.AddRange(tesouroDireto.Select(x => new Investimento(x))); ret.Investimentos.AddRange(rendaFixa.Select(x => new Investimento(x))); return(ret); }
public ClienteResponse(ClientePosicao clientePosicao) { this.Investimentos = clientePosicao.Investimentos; this.ValorTotal = clientePosicao.ValorTotal; }