示例#1
0
        public ActionResult Create(Feedback fb)
        {
            if (this.ModelState.IsValid)
            {
                //add the cat to the db
                FeedbackManager.Create(fb);

                return(RedirectToAction(actionName: "Index", controllerName: "Home"));
            }
            else
            {
                return(Content("error"));
            }
        }