public ActionResult Delete(string id) { try { _wallRepository.Delete(id); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }