Exemplo n.º 1
0
        public ActionResult AddComment(int Id, [Bind(Include = "Content")] AddCommentBM bind)
        {
            string userName = User.Identity.Name;

            if (this.ModelState.IsValid)
            {
                service.AddCommentToProduct(Id, userName, bind);

                return(RedirectToAction("Details", new { Id = Id }));
            }
            return(View());
        }