public void Expanded(CourtCaseHeadingViewModel model)
 {
     if (UpdateHistoryItems(model))
     {
         RenewCourtCases();
     }
 }
 private bool UpdateHistoryItems(CourtCaseHeadingViewModel model)
 {
     if (model != null && model.Heading is CourtCaseHeading &&
         model.Heading.ChangeTracker.State == ObjectState.Unchanged)
     {
         model.Heading.CourtCaseHistoryHeadings.Clear();
         var data = FACCTS.Services.Data.CourtCases.GetHistoryHeadings(model.Heading.CourtCaseId);
         model.UpdateChilds(data);
         model.Heading.MarkAsModified();
         return data.Any();
     }
     return false;
 }