Ejemplo n.º 1
0
        public ActionResult EditComment(int blogId, int id, Comment comment)
        {
            if (!bprepository.IsLocked(id))
            {
                bprepository.EditComment(comment, id, User);
                TempData["message"] = "Kommentar endret";
            }

            return(RedirectToAction("BlogPost", new { @blogId = blogId, @id = id }));
        }