public ActionResult EnablePost(int id) { var banService = new BanService(); var result = banService.EnablePost(new EnablePostRequest { PostId = id }); return(RedirectToAction("Index")); }