Example #1
0
        public ConVector Delete(int id)
        {
            ConVector conVector = _context.ConVectors.FirstOrDefault(n => n.Id == id);

            if (conVector != null)
            {
                _context.ConVectors.Remove(conVector);
            }
            _context.SaveChanges();
            return(conVector);
        }
Example #2
0
 public void Addcontro(ConVector conVector)
 {
     _context.ConVectors.Add(conVector);
     _context.SaveChanges();
 }