diff --git a/Models/eva_create_evaluation/eva_create_evaluationService.cs b/Models/eva_create_evaluation/eva_create_evaluationService.cs index 421c916..a6c87a6 100644 --- a/Models/eva_create_evaluation/eva_create_evaluationService.cs +++ b/Models/eva_create_evaluation/eva_create_evaluationService.cs @@ -302,10 +302,23 @@ namespace TodoAPI2.Models where i.create_evaluation_detail_id == k.id select i; _repository.Context.eva_evaluation_achievement.RemoveRange(p5); + + var p6 = from i in _repository.Context.eva_evaluation_operating_agreement + where i.create_evaluation_detail_id == k.id + select i; + _repository.Context.eva_evaluation_operating_agreement.RemoveRange(p6); } _repository.Context.eva_create_evaluation_detail.RemoveRange(p3); + foreach (var j in p) + { + var p2 = from i in _repository.Context.eva_adjust_postponement_detail + where i.adjust_postponement_id == j.id + select i; + _repository.Context.eva_adjust_postponement_detail.RemoveRange(p2); + } + _repository.Delete(id); return; diff --git a/Views/eva_create_evaluation_detail_agreementView/eva_create_evaluation_detail_agreement.cshtml b/Views/eva_create_evaluation_detail_agreementView/eva_create_evaluation_detail_agreement.cshtml index c707bbf..800ee54 100644 --- a/Views/eva_create_evaluation_detail_agreementView/eva_create_evaluation_detail_agreement.cshtml +++ b/Views/eva_create_evaluation_detail_agreementView/eva_create_evaluation_detail_agreement.cshtml @@ -15,7 +15,7 @@