Exemplo n.º 1
0
 public void Setup(SchoolCheckIn.CheckIn.Model.School school)
 {
     PetaPoco.Database db = new PetaPoco.Database("DatabaseConn");
     db.BeginTransaction();
     try{
         _schoolService.School(db);
         _schoolService.Setup(school);
         db.CompleteTransaction();
     }
     catch (Exception e)
     {
         db.AbortTransaction();
         throw e;
     }
 }