public JsonResult Edit(UserCourse userCourse)
 {
     userCourse.UpdateCourseNames();
     var result = UpdateUserOwnedEntity(userCourse);
     return result;
 }
 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;
 }