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(); } }
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(); } }
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(); } }
public void delete(emptyseat empty) { using (FlySusDataContext context = new FlySusDataContext()) { var entity = context.Entry(empty); entity.State = EntityState.Deleted; context.SaveChanges(); } }
public void Update(Flight flight) { using (FlySusDataContext context = new FlySusDataContext()) { var entity = context.Entry(flight); entity.State = EntityState.Modified; context.SaveChanges(); } }