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); }
public void Addcontro(ConVector conVector) { _context.ConVectors.Add(conVector); _context.SaveChanges(); }