Skip to content

Instantly share code, notes, and snippets.

@luisdeol
Created May 11, 2021 16:33
Show Gist options
  • Save luisdeol/eef6c14181506a6bbece23ee26dd26aa to your computer and use it in GitHub Desktop.
Save luisdeol/eef6c14181506a6bbece23ee26dd26aa to your computer and use it in GitHub Desktop.
Artigo LINQ #2: Classe Pessoa e PessoaItemViewModel
using System.Collections.Generic;
namespace ArtigoLinq
{
public class Pessoa
{
public Pessoa(string nome, string sobrenome, string documento, string endereco, string cep, string numero, string cidadeEstado)
{
Nome = nome;
Sobrenome = sobrenome;
Documento = documento;
Endereco = endereco;
Cep = cep;
Numero = numero;
CidadeEstado = cidadeEstado;
}
public string Nome { get; set; }
public string Sobrenome { get; set; }
public string Documento { get; set; }
public string Endereco { get; set; }
public string Cep { get; set; }
public string Numero { get; set; }
public string CidadeEstado { get; set; }
}
public class PessoaItemViewModel
{
public PessoaItemViewModel(string nomeCompleto, string documento)
{
NomeCompleto = nomeCompleto;
Documento = documento;
}
public string NomeCompleto { get; set; }
public string Documento { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment