Пример #1
0
        /*[HttpGet]
         * public ActionResult DeleteAssignedTeacher()
         * {
         *  return View();
         * }*/
        //[HttpPost]
        public ActionResult DeleteAssignedTeacher(int id)
        {
            CourseAssignManager aCourseAssignManager = new CourseAssignManager();
            int rowsEffected = aCourseAssignManager.DeleteAssignedCourseByCourseAssignId(id);//aCourseManager.DeleteCourse(courseId);

            if (rowsEffected > 0)
            {
                return(RedirectToAction("ViewAllAssignedTeachers"));
            }
            else
            {
                return(null);
            }
        }