BookManagement.Controllers.CommentController.Create C# (CSharp) Метод

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

private Create ( Comment comment ) : System.Web.Mvc.ActionResult
comment BookManagement.Models.Comment
Результат System.Web.Mvc.ActionResult
        public ActionResult Create(Comment comment)
        {
            if (ModelState.IsValid)
            {
                comment.User = (int)WebSecurity.CurrentUserId;

                comment.Date = DateTime.Now;
                db.Comment.Add(comment);
                db.SaveChanges();
                return RedirectToAction("Detail", "Book", new {id=comment.Book});
            }

            return View(comment);
        }

Same methods

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