コード例 #1
0
 public bool UpdateCourse(Course course)
 {
     try
     {
         CourseGetway courseGetway = new CourseGetway();
         return(courseGetway.UpdateCourse(course));
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #2
0
        public string updateCourseAction()
        {
            int rowAffect = courseGetway.UpdateCourse();

            if (rowAffect > 0)
            {
                return("Unassign Successfully");
            }
            else
            {
                return("Unassign Failed");
            }
        }