public ActionResult GetCommentsForSite(string number) { var model = new CommentsModel(); model.FindComments(int.Parse(number)); return(View("CommentsPanel", model)); }
// GET api/comment/5 public CommentsModel Get(int id) { var foundComments = new CommentsModel(); foundComments.FindComments(id); return(foundComments); }
public ActionResult DeleteComment(string commentId, string siteId) { var model = new CommentsModel(); model.DeleteComment(int.Parse(commentId)); model.FindComments(int.Parse(siteId)); return(View("CommentsPanel", model)); }