public bool AddUserCoursesForTeacher([FromBody] UserCourses Model) { try { CoursesRepository _searchRepository = new CoursesRepository(); var Result = _searchRepository.AddUserCoursesForTeacher(Model); return(Result); } catch (Exception ex) { throw; } }