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