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()); }
public ActionResult Edit(string id) { return(View(CommentEditModel.GetById(new Guid(id)))); }