예제 #1
0
        public ActionResult Delete(string id)
        {
            var m = CommentEditModel.GetById(new Guid(id));

            if (m.Delete())
            {
                SuccessMessage(Piranha.Resources.Comment.MessageDeleted);
            }
            else
            {
                ErrorMessage(Piranha.Resources.Comment.MessageNotDeleted);
            }
            return(Index());
        }
예제 #2
0
 public ActionResult Edit(string id)
 {
     return(View(CommentEditModel.GetById(new Guid(id))));
 }