예제 #1
0
 public virtual void Cadastrar(TEntity obj)
 {
     try
     {
         repositorio.BeginTrasaction();
         repositorio.Inserir(obj);
         repositorio.Commit();
     }
     catch (Exception ex)
     {
         repositorio.Rollback();
         throw new Exception(ex.Message);
     }
 }