Ejemplo n.º 1
0
        public LogisticOtherService Update(LogisticOtherService logisticOtherServiceChanges)
        {
            _context.Entry(logisticOtherServiceChanges).State = EntityState.Modified;
            _context.SaveChanges();

            return(logisticOtherServiceChanges);
        }
Ejemplo n.º 2
0
        public LogisticOtherService Add(LogisticOtherService logisticOtherService)
        {
            _context.LogisticOtherServiceItems.Add(logisticOtherService);
            _context.SaveChanges();

            return(logisticOtherService);
        }
Ejemplo n.º 3
0
        public LogisticOtherService Delete(int id)
        {
            LogisticOtherService logisticOtherService = _context.LogisticOtherServiceItems.Find(id);

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

            return(logisticOtherService);
        }