Exemplo n.º 1
0
        public ActionResult Review(FormCollection form)
        {
            string title    = form["title"];
            string user     = form["username"];
            string isbn     = form["isbn"];
            int    score    = int.Parse(form["score"]);
            string content  = form["content"];
            bool   inserted = ReviewDAO.InsertReview(title, content, DateTime.Now, isbn, user, score);

            ViewBag.insertReview = inserted;
            return(RedirectToAction("ViewBook", "ViewBook", new { isbn = isbn }));
        }