public ActionResult DeletePolitician(int id) { var personRepo = new PersonRepository(); var languageManager = new LanguageManager(); var person = personRepo.Get(id); languageManager.DeleteTranslations(person.Name); languageManager.DeleteTranslations(person.Post); personRepo.Delete(id); ViewBag.Notifications = $"Person {person.Name} deleted."; return(View("Politicians", ConfigHelper.GetConfig())); }