public void Edit(Truck entity)
 {
     _context.Trucks.Attach(entity);
     var entry = _context.Entry(entity);
     entry.State = EntityState.Modified;
     _context.SaveChanges();
 }
 public void Add(Truck entity)
 {
     _context.Trucks.Add(entity);
     _context.SaveChanges();
 }