コード例 #1
0
 public JsonResult Edit(UserCourse userCourse)
 {
     userCourse.UpdateCourseNames();
     var result = UpdateUserOwnedEntity(userCourse);
     return result;
 }
コード例 #2
0
 private UserCourse UpdateCourseDetails(string batch, int branchId, User user)
 {
     var course = new UserCourse
     {
         Batch = batch,
         BranchId = branchId,
     };
     course.UpdateCourseNames();
     user.UserCourses = new List<UserCourse> { course };
     return course;
 }