Exemplo n.º 1
0
        public ActionResult UnassignCourse(CourseAssign courseAssign)
        {
            if (!cAssignManager.GetAllassignCourse())
            {
                bool IsCourseUnassigned = cAssignManager.UnassignCourse(courseAssign);
                if (IsCourseUnassigned)
                {
                    ViewBag.Message = "All courses are Unassigned successfully";
                }
                else
                {
                    ViewBag.errorMessage = "All courses failed to Unassign";
                }
            }
            else
            {
                ViewBag.errorMessage = "All courses already Unassigned";
            }

            return(View());
        }