Exemplo n.º 1
0
        public Nonconformity Add(Nonconformity nonconformity)
        {
            _context.Nonconformities.Add(nonconformity);
            _context.SaveChanges();

            var addedNonconformity = _context.Nonconformities.FirstOrDefault(p => p.Id == nonconformity.Id);

            return(addedNonconformity);
        }
 public void Add(Action action)
 {
     _context.Actions.Add(action);
     _context.SaveChanges();
 }