Example #1
0
 public void Update(Cadastro cadastro)
 {
     if (cadastro == null)
     {
         throw new ArgumentNullException("cadastro");
     }
     CadastroDallHelper.UpdateCadastro(cadastro);
 }
Example #2
0
 public void Insert(Cadastro cadastro)
 {
     if (cadastro == null)
     {
         throw new ArgumentNullException("cadastro");
     }
     CadastroDallHelper.InsertCadastro(cadastro);
 }
Example #3
0
 public void Delete(int id)
 {
     CadastroDallHelper.DeleteCadastro(id);
 }
Example #4
0
 public Cadastro Find(int id)
 {
     return(CadastroDallHelper.GetCadastro(id));
 }
Example #5
0
 private void InicializaDados()
 {
     _cadastros = CadastroDallHelper.GetCadastros();
 }