BgEngine.Controllers.CommentController.Create C# (CSharp) Method

Create() private method

private Create ( Comment comment ) : System.Web.Mvc.ActionResult
comment BgEngine.Domain.EntityModel.Comment
return System.Web.Mvc.ActionResult
        public ActionResult Create(Comment comment)
        {
            if (ModelState.IsValid)
            {
                BlogServices.CreateComment(comment,UserServices.FindEntityByIdentity(CodeFirstSecurity.CurrentUserId));
                return RedirectToAction("Index");
            }
            ViewBag.PostId = new SelectList(PostServices.FindAllEntities(null, null, null), "PostId", "Title", comment.PostId);
            return View(comment);
        }

Same methods

CommentController::Create ( ) : System.Web.Mvc.ActionResult