public void UpdateAirline(Flight entity) { context.Entry(entity).State = Microsoft.EntityFrameworkCore.EntityState.Modified; context.SaveChanges(); }
public void UpdateUser(User entity) { context.Entry(entity).State = Microsoft.EntityFrameworkCore.EntityState.Modified; context.SaveChanges(); }