public async Task UpdateAsync(Ride ride)
        {
            _context.Rides.Attach(ride);
            _context.Entry(ride).State = EntityState.Modified;

            await _context.SaveChangesAsync();
        }
Esempio n. 2
0
        public async Task UpdateAsync(Carrier carrier)
        {
            _context.Carriers.Attach(carrier);
            _context.Entry(carrier).State = EntityState.Modified;

            await _context.SaveChangesAsync();
        }
        public async Task UpdateAsync(Vehicle vehicle)
        {
            _context.Vehicles.Attach(vehicle);
            _context.Entry(vehicle).State = EntityState.Modified;

            await _context.SaveChangesAsync();
        }
        public async Task UpdateAsync(Driver driver)
        {
            _context.Drivers.Attach(driver);
            _context.Entry(driver).State = EntityState.Modified;

            await _context.SaveChangesAsync();
        }