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();
        }
Beispiel #2
0
 public void Delete(Car car)
 {
     _context.Remove(car);
 }
Beispiel #3
0
 public void Remove(TEntity entity)
 {
     _context.Remove(entity);
 }