public ActionResult Delete(int id, IFormCollection collection) { try { bool result = _MembersService.DeleteMember(id); if (result) { return(RedirectToAction(nameof(Index))); } throw new Exception(); } catch { return(View()); } }