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