Exemplo n.º 1
0
 public Pessoa Get(int id)
 {
     try
     {
         using (var pessoaNegocio = new PessoaNegocio())
         {
             return(pessoaNegocio.Get(id));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 2
0
 public IEnumerable <Pessoa> Get()
 {
     try
     {
         using (var pessoaNegocio = new PessoaNegocio())
         {
             return(pessoaNegocio.Get());
         }
     }
     catch (Exception)
     {
         throw;
     }
 }