public bool AddUnversity(University uni)
 {
     try
     {
         using (var context = new TSMTEntities())
         {
             context.Universities.Add(uni);
             context.SaveChanges();
             return true;
         }
     }
     catch (Exception ex)
     {
         return false;
     }
 }
Esempio n. 2
0
 public bool AddVenue(Venue ven)
 {
     try
     {
         using (var context = new TSMTEntities())
         {
             context.Venues.Add(ven);
             context.SaveChanges();
             return true;
         }
     }
     catch (Exception ex)
     {
         return false;
     }
 }
Esempio n. 3
0
 public bool AddCharityExam(ChairitiesExam ce)
 {
     try
     {
         using (var context = new TSMTEntities())
         {
             context.ChairitiesExams.Add(ce);
             context.SaveChanges();
             return true;
         }
     }
     catch (Exception ex)
     {
         return false;
     }
 }