public IActionResult DeleteByPost( int personDescriptionId) { var description = _personData .GetPersonDescriptionWithNavigation( personDescriptionId); if (description == null) { return(NotFound()); } _personData.DeletePersonDescription(description); // // Update RDF // var readPerson = _personData.ReadAllPersonData(description.Person.PersonGuid); if (readPerson != null) { _rdfData.AddOrUpdatePerson(readPerson); } // // Update search index // // Descriptions are at this time not searchable. // // Redirect // return(RedirectToAction( "Details", "Person", new { personGuid = description.Person.PersonGuid })); }