Exemple #1
0
 public PagamentoReembolsoViewModel(PagamentoReembolso pagamentoReembolso)
 {
     Id                       = pagamentoReembolso.Id;
     DataInsercao             = pagamentoReembolso.DataInsercao;
     ContasAPagarViewModel    = new ContasAPagarViewModel(pagamentoReembolso?.ContaAPagar ?? new ContasAPagar());
     NumeroRecibo             = pagamentoReembolso.NumeroRecibo;
     StatusPagamentoReembolso = pagamentoReembolso.Status;
 }
Exemple #2
0
 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
     });
 }