Broadening notifications for cancelled TECNs
This commit is contained in:
@ -373,8 +373,11 @@ namespace Fab2ApprovalSystem.DMO
|
||||
FabApprovalTrainingEntities db = new FabApprovalTrainingEntities();
|
||||
Training training = (from a in db.Trainings where a.TrainingID == trainingId select a).FirstOrDefault();
|
||||
|
||||
training.Deleted = true;
|
||||
training.DeletedDate = DateTime.Now;
|
||||
if (training != null)
|
||||
{
|
||||
training.Deleted = true;
|
||||
training.DeletedDate = DateTime.Now;
|
||||
}
|
||||
|
||||
List<TrainingAssignment> trainingAssignments = (from a in db.TrainingAssignments where a.TrainingID == trainingId select a).ToList();
|
||||
db.SaveChanges();
|
||||
|
Reference in New Issue
Block a user