Ejemplo n.º 1
0
        internal bool DeleteCaseDefects(int caseID)
        {
            var Defendants = DefentantsComponent.GetDefendantsByCaseID(caseID);

            foreach (var Defendant in Defendants)
            {
                if (DefentantsComponent.DeleteDefendant(caseID, Defendant.ID) == DeleteDefectStatus.NotDeleted)
                {
                    return(false);
                }
            }
            var Victims = VictimsComponent.GetVictimsByCaseID(caseID);

            foreach (var Victim in Victims)
            {
                if (VictimsComponent.DeleteVictim(caseID, Victim.ID) == DeleteDefectStatus.NotDeleted)
                {
                    return(false);
                }
            }
            return(true);
        }
Ejemplo n.º 2
0
 private DeleteDefectStatus DeleteVictimDefect(int CaseID, long VictimID)
 {
     return(VictimsComponent.DeleteVictim(CaseID, VictimID));
 }