public static List <UserCourseRoleMappingModel> GetUserCourseRoleMappingsByCourse(int courseId) { try { var ucrms = SQLAdapter.GetUserCourseRoleMappingsByCourse(courseId); var mappedUcrms = ModelMapper.MapToUsersModel(ucrms); return(mappedUcrms); } catch (Exception e) { return(null); } }