private void bwDelete_DoWork(object sender, DoWorkEventArgs e) { foreach (OffDayModel offDay in offDayToDeleteList) { OffDayController.Delete(offDay.Date.Date); } }
private void bwRemove_DoWork(object sender, DoWorkEventArgs e) { foreach (var removeItem in offDayToRemoveList) { // Remove offday OffDayController.Delete(removeItem.OffDayID); offDayCurrentList.Remove(removeItem); // Remove offdaymap by OffDayID RemoveOffDayMap(removeItem.OffDayID); } }