Beispiel #1
0
        public LogisticOtherService Update(LogisticOtherService logisticOtherServiceChanges)
        {
            _context.Entry(logisticOtherServiceChanges).State = EntityState.Modified;
            _context.SaveChanges();

            return(logisticOtherServiceChanges);
        }
Beispiel #2
0
        public LogisticOtherService Add(LogisticOtherService logisticOtherService)
        {
            _context.LogisticOtherServiceItems.Add(logisticOtherService);
            _context.SaveChanges();

            return(logisticOtherService);
        }
Beispiel #3
0
        public LogisticOtherService Delete(int id)
        {
            LogisticOtherService logisticOtherService = _context.LogisticOtherServiceItems.Find(id);

            if (logisticOtherService != null)
            {
                _context.LogisticOtherServiceItems.Remove(logisticOtherService);
                _context.SaveChanges();
            }

            return(logisticOtherService);
        }