async public Task <ActionResult> RemoveComment(int?id) { if (!id.HasValue) { return(RedirectToAction("Index", "Home")); } if (!CustomUser.IsInRole("Moderator")) { return(RedirectToAction("Index", "Home")); } Comment comment = await _memeRepo.GetCommentById((int)id); if (comment == null) { return(RedirectToAction("Index", "Home")); } return(View(comment)); }