Carrotware.CMS.Mvc.UI.Admin.Controllers.CmsAdminController.CommentAddEdit C# (CSharp) Метод

CommentAddEdit() приватный Метод

private CommentAddEdit ( System.Guid id, bool pageComment ) : System.Web.Mvc.ActionResult
id System.Guid
pageComment bool
Результат System.Web.Mvc.ActionResult
		public ActionResult CommentAddEdit(Guid id, bool? pageComment) {
			PostComment model1 = PostComment.GetContentCommentByID(id);
			PostCommentModel model = null;

			if (pageComment.HasValue && pageComment.Value) {
				model = new PostCommentModel(model1, PostCommentModel.ViewType.PageView);
			} else {
				if (model1.ContentType == ContentPageType.PageType.BlogEntry) {
					model = new PostCommentModel(model1, PostCommentModel.ViewType.BlogIndex);
				} else {
					model = new PostCommentModel(model1, PostCommentModel.ViewType.ContentIndex);
				}
			}

			return View(model);
		}

Same methods

CmsAdminController::CommentAddEdit ( Carrotware.CMS.Mvc.UI.Admin.Models.PostCommentModel model ) : System.Web.Mvc.ActionResult