public PagamentoReembolsoViewModel(PagamentoReembolso pagamentoReembolso) { Id = pagamentoReembolso.Id; DataInsercao = pagamentoReembolso.DataInsercao; ContasAPagarViewModel = new ContasAPagarViewModel(pagamentoReembolso?.ContaAPagar ?? new ContasAPagar()); NumeroRecibo = pagamentoReembolso.NumeroRecibo; StatusPagamentoReembolso = pagamentoReembolso.Status; }
public PagamentoReembolsoViewModel ToViewModel(PagamentoReembolso pagamentoReembolso) { return(new PagamentoReembolsoViewModel { Id = pagamentoReembolso.Id, DataInsercao = pagamentoReembolso.DataInsercao, ContasAPagarViewModel = new ContasAPagarViewModel(pagamentoReembolso?.ContaAPagar ?? new ContasAPagar()), NumeroRecibo = pagamentoReembolso.NumeroRecibo, StatusPagamentoReembolso = pagamentoReembolso.Status }); }