Exemple #1
0
 public void add(adminlflightInformations adminlflight)
 {
     using (FlySusDataContext context = new FlySusDataContext())
     {
         context.AdminlFlightInformations.Add(adminlflight);
         context.SaveChanges();
     }
 }
 public void add(passangerInformation passanger)
 {
     using (FlySusDataContext context = new FlySusDataContext())
     {
         context.passangerInformations.Add(passanger);
         context.SaveChanges();
     }
 }
Exemple #3
0
 public void add(emptyseat empty)
 {
     using (FlySusDataContext context = new FlySusDataContext())
     {
         context.emptyseats.Add(empty);
         context.SaveChanges();
     }
 }
 public void add(fullseat fullseats)
 {
     using (FlySusDataContext context = new FlySusDataContext())
     {
         context.fullseats.Add(fullseats);
         context.SaveChanges();
     }
 }
Exemple #5
0
 public void Add(Flight flights)
 {
     using (FlySusDataContext context = new FlySusDataContext())
     {
         context.Flights.Add(flights);
         context.SaveChanges();
     }
 }
 public void delete(passangerInformation passanger)
 {
     using (FlySusDataContext context = new FlySusDataContext())
     {
         var entity = context.Entry(passanger);
         entity.State = EntityState.Deleted;
         context.SaveChanges();
     }
 }
Exemple #7
0
 public void delete(emptyseat empty)
 {
     using (FlySusDataContext context = new FlySusDataContext())
     {
         var entity = context.Entry(empty);
         entity.State = EntityState.Deleted;
         context.SaveChanges();
     }
 }
Exemple #8
0
 public void Update(Flight flight)
 {
     using (FlySusDataContext context = new FlySusDataContext())
     {
         var entity = context.Entry(flight);
         entity.State = EntityState.Modified;
         context.SaveChanges();
     }
 }