public void AppointmentRemoving(IEnumerable <CarScheduling> appointments)
        {
            foreach (var item in appointments)
            {
                if (item.EventType != (int)AppointmentType.Occurrence)
                {
                    db.Remove(item);
                    if (item.EventType == (int)AppointmentType.Pattern)
                    {
                        RemoveOccurrances(item.PatternId);
                    }
                }
            }

            db.SaveChanges();
        }
Exemplo n.º 2
0
 public void Delete(Car car)
 {
     _context.Remove(car);
 }
Exemplo n.º 3
0
 public void Remove(TEntity entity)
 {
     _context.Remove(entity);
 }