public ActionResult Delete(int commentID) { if (User.Identity.IsAuthenticated) { var commentToRemove = repo.ByID(commentID); if (commentToRemove != null) { repo.Delete(commentID); } return(Content("Kommentar borttagen")); } return(Content("gick inte att ta bort den")); }