public ActionResult EditComment(Comment comment) { if (functions.CookieID() == null) { return(Redirect("/Users/Login")); } else if (ModelState.IsValid) { commentDao.Edit(comment); return(Json(true, JsonRequestBehavior.AllowGet)); } return(Json(false, JsonRequestBehavior.AllowGet)); }