public ActionResult UnallocationCourseAssignToTeacher(CourseAssignToTeacher courseAssignToTeacher) { int rowsAffected = courseAssignToTeacherManager.UnallocationCourseAssignToTeacher(courseAssignToTeacher); if (rowsAffected > 0) { ViewBag.Message = "Unassign Teacher Successfully"; } else { ViewBag.Message = "Unassign failed"; } return(View()); }