Ejemplo n.º 1
0
        public ActionResult Create(Course viewobj)
        {
            if (ModelState.IsValid)
            {
                dblogic.CreateCourse(viewobj);

                return(RedirectToAction("Details", new { id = viewobj.Id }));
            }

            return(View(viewobj));
        }