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

Edit() private method

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

Same methods

CommentController::Edit ( int id ) : System.Web.Mvc.ActionResult