Exemple #1
0
        public ActionResult Create([Bind(Include = "Id,Name,Description,EmpId")] ProductBacklog productBacklog)
        {
            if (ModelState.IsValid)
            {
                db.ProductBacklogs.Add(productBacklog);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(productBacklog));
        }
        public ActionResult Create([Bind(Include = "Id,Message")] Test test)
        {
            if (ModelState.IsValid)
            {
                db.Tests.Add(test);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(test));
        }