Ejemplo n.º 1
0
        public ActionResult InsertCourse(string Name, string From, string To)
        {
            COURSE course = new COURSE();
            var    result = course.Insert(From, To, Name);

            if (result > 0)
            {
                TempData["return"] = "Insert Course successfully";
            }
            else
            {
                TempData["return"] = "Insert Course Fail";
            }
            return(RedirectToAction("Index", "Manage"));
        }