Example #1
0
 public async Task Update(User user)
 {
     _dbContext.MyUsers.Update(user);
     await _dbContext.SaveChangesAsync();
 }
 public async Task UpdateStatus(Plane plane)
 {
     _dbContext.Planes.Update(plane);
     await _dbContext.SaveChangesAsync();
 }
Example #3
0
 public async Task Delete(Flight flight)
 {
     _dbContext.Flights.Remove(flight);
     await _dbContext.SaveChangesAsync();
 }
Example #4
0
 public async Task Delete(Booking booking)
 {
     _dbContext.Bookings.Remove(booking);
     await _dbContext.SaveChangesAsync();
 }