public LogisticService Update(LogisticService logisticServiceChanges) { var local = _context.Set <LogisticService>().Local.FirstOrDefault(entry => entry.Id.Equals(logisticServiceChanges.Id)); if (local != null) { _context.Entry(local).State = EntityState.Detached; } _context.Entry(logisticServiceChanges).State = EntityState.Modified; _context.SaveChanges(); return(logisticServiceChanges); }
public Province Update(Province provinceChanges) { _context.Entry(provinceChanges).State = EntityState.Modified; _context.SaveChanges(); return(provinceChanges); }
public District Update(District districtChanges) { _context.Entry(districtChanges).State = EntityState.Modified; _context.SaveChanges(); return(districtChanges); }
public User Update(User userChanges) { _context.Entry(userChanges).State = EntityState.Modified; _context.SaveChanges(); return(userChanges); }
public Address Update(Address addressChanges) { _context.Entry(addressChanges).State = EntityState.Modified; _context.SaveChanges(); return(addressChanges); }
public RajaOngkirCity Update(RajaOngkirCity rajaOngkirCityChanges) { _context.Entry(rajaOngkirCityChanges).State = EntityState.Modified; _context.SaveChanges(); return(rajaOngkirCityChanges); }
public LogisticOtherService Update(LogisticOtherService logisticOtherServiceChanges) { _context.Entry(logisticOtherServiceChanges).State = EntityState.Modified; _context.SaveChanges(); return(logisticOtherServiceChanges); }
public LogisticPacket Update(LogisticPacket logisticPacketChanges) { _context.Entry(logisticPacketChanges).State = EntityState.Modified; _context.SaveChanges(); return(logisticPacketChanges); }
public Regency Update(Regency regencyChanges) { _context.Entry(regencyChanges).State = EntityState.Modified; _context.SaveChanges(); return(regencyChanges); }
public Country Update(Country countryChanges) { _context.Entry(countryChanges).State = EntityState.Modified; _context.SaveChanges(); return(countryChanges); }
public LogisticFareIdentity Update(LogisticFareIdentity logisticFareIdentityChanges) { _context.Entry(logisticFareIdentityChanges).State = EntityState.Modified; _context.SaveChanges(); return(logisticFareIdentityChanges); }
public LogisticServiceFare Update(LogisticServiceFare logisticFareNominalChanges) { _context.Entry(logisticFareNominalChanges).State = EntityState.Modified; _context.SaveChanges(); return(logisticFareNominalChanges); }