Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public Province Update(Province provinceChanges)
        {
            _context.Entry(provinceChanges).State = EntityState.Modified;
            _context.SaveChanges();

            return(provinceChanges);
        }
Exemplo n.º 3
0
        public District Update(District districtChanges)
        {
            _context.Entry(districtChanges).State = EntityState.Modified;
            _context.SaveChanges();

            return(districtChanges);
        }
Exemplo n.º 4
0
        public User Update(User userChanges)
        {
            _context.Entry(userChanges).State = EntityState.Modified;
            _context.SaveChanges();

            return(userChanges);
        }
Exemplo n.º 5
0
        public Address Update(Address addressChanges)
        {
            _context.Entry(addressChanges).State = EntityState.Modified;
            _context.SaveChanges();

            return(addressChanges);
        }
Exemplo n.º 6
0
        public RajaOngkirCity Update(RajaOngkirCity rajaOngkirCityChanges)
        {
            _context.Entry(rajaOngkirCityChanges).State = EntityState.Modified;
            _context.SaveChanges();

            return(rajaOngkirCityChanges);
        }
Exemplo n.º 7
0
        public LogisticOtherService Update(LogisticOtherService logisticOtherServiceChanges)
        {
            _context.Entry(logisticOtherServiceChanges).State = EntityState.Modified;
            _context.SaveChanges();

            return(logisticOtherServiceChanges);
        }
Exemplo n.º 8
0
        public LogisticPacket Update(LogisticPacket logisticPacketChanges)
        {
            _context.Entry(logisticPacketChanges).State = EntityState.Modified;
            _context.SaveChanges();

            return(logisticPacketChanges);
        }
Exemplo n.º 9
0
        public Regency Update(Regency regencyChanges)
        {
            _context.Entry(regencyChanges).State = EntityState.Modified;
            _context.SaveChanges();

            return(regencyChanges);
        }
Exemplo n.º 10
0
        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);
        }
Exemplo n.º 12
0
        public LogisticServiceFare Update(LogisticServiceFare logisticFareNominalChanges)
        {
            _context.Entry(logisticFareNominalChanges).State = EntityState.Modified;
            _context.SaveChanges();

            return(logisticFareNominalChanges);
        }