C# 클래스 Ru.GameSchool.BusinessLayer.Services.CourseService

Service class that abstracts the interraction around the course entity with the data layer.
상속: BaseService
파일 보기 프로젝트 열기: davidein/Ru.GameSchool 1 사용 예제들

공개 메소드들

메소드 설명
AddCourseGrade ( CourseGrade courseGrade ) : void

Gets a courseGrade instance through a parameter of this function and if it isn't null persist it to the database.

AddUserToCourse ( int userInfoId, int courseId, ResponseStatus &responseStatus ) : string
CreateCourse ( Course course ) : void

Gets a course instance through a parameter of this function and if it isn't null persist it to the database.

GetContentTypeNameById ( int contentTypeId ) : string
GetCourse ( int courseId ) : Course

Gets a Course entity by CourseId

GetCourseGradeByCourseIdAndUserInfoId ( int courseId, int userInfoId ) : CourseGrade

Gets the grade of a certain user in a course

GetCourseGrades ( int courseId ) : IEnumerable

Gets a list of all grades in a course

GetCourseMaterials ( int courseId ) : IEnumerable
GetCourseMaterials ( int courseId, int contentTypeId ) : IEnumerable
GetCourseNewestItems ( int courseId, int userInfoId ) : IEnumerable
GetCourses ( ) : IEnumerable

Gets all registered Courses

GetCoursesByUserInfoId ( int userInfoId ) : IEnumerable
GetCoursesByUserInfoIdAndCourseId ( int userInfoId, int courseId ) : IEnumerable

GetCurrentUserLevel ( int userInfoId, int courseId ) : int

Gets current level by UserInfoId and CourseId

GetDepartments ( ) : IEnumerable

Gets all registered Departments

Search ( string search ) : IEnumerable
UpdateCourse ( Course course ) : void
UpdateCourseGrade ( CourseGrade courseGrade ) : void

메소드 상세

AddCourseGrade() 공개 메소드

Gets a courseGrade instance through a parameter of this function and if it isn't null persist it to the database.
public AddCourseGrade ( CourseGrade courseGrade ) : void
courseGrade Ru.GameSchool.DataLayer.Repository.CourseGrade
리턴 void

AddUserToCourse() 공개 메소드

public AddUserToCourse ( int userInfoId, int courseId, ResponseStatus &responseStatus ) : string
userInfoId int
courseId int
responseStatus ResponseStatus
리턴 string

CreateCourse() 공개 메소드

Gets a course instance through a parameter of this function and if it isn't null persist it to the database.
public CreateCourse ( Course course ) : void
course Ru.GameSchool.DataLayer.Repository.Course Instance of a course
리턴 void

GetContentTypeNameById() 공개 메소드

public GetContentTypeNameById ( int contentTypeId ) : string
contentTypeId int
리턴 string

GetCourse() 공개 메소드

Gets a Course entity by CourseId
public GetCourse ( int courseId ) : Course
courseId int Id of the course to get.
리턴 Ru.GameSchool.DataLayer.Repository.Course

GetCourseGradeByCourseIdAndUserInfoId() 공개 메소드

Gets the grade of a certain user in a course
public GetCourseGradeByCourseIdAndUserInfoId ( int courseId, int userInfoId ) : CourseGrade
courseId int Id of the Course to get the grade for.
userInfoId int
리턴 Ru.GameSchool.DataLayer.Repository.CourseGrade

GetCourseGrades() 공개 메소드

Gets a list of all grades in a course
public GetCourseGrades ( int courseId ) : IEnumerable
courseId int Id of the course to get grades for.
리턴 IEnumerable

GetCourseMaterials() 공개 메소드

public GetCourseMaterials ( int courseId ) : IEnumerable
courseId int
리턴 IEnumerable

GetCourseMaterials() 공개 메소드

public GetCourseMaterials ( int courseId, int contentTypeId ) : IEnumerable
courseId int
contentTypeId int
리턴 IEnumerable

GetCourseNewestItems() 공개 메소드

public GetCourseNewestItems ( int courseId, int userInfoId ) : IEnumerable
courseId int
userInfoId int
리턴 IEnumerable

GetCourses() 공개 메소드

Gets all registered Courses
public GetCourses ( ) : IEnumerable
리턴 IEnumerable

GetCoursesByUserInfoId() 공개 메소드

public GetCoursesByUserInfoId ( int userInfoId ) : IEnumerable
userInfoId int
리턴 IEnumerable

GetCoursesByUserInfoIdAndCourseId() 공개 메소드

public GetCoursesByUserInfoIdAndCourseId ( int userInfoId, int courseId ) : IEnumerable
userInfoId int
courseId int
리턴 IEnumerable

GetCurrentUserLevel() 공개 메소드

Gets current level by UserInfoId and CourseId
public GetCurrentUserLevel ( int userInfoId, int courseId ) : int
userInfoId int Id of the User to get current level for.
courseId int Id of the Course to get current level for.
리턴 int

GetDepartments() 공개 메소드

Gets all registered Departments
public GetDepartments ( ) : IEnumerable
리턴 IEnumerable

Search() 공개 메소드

public Search ( string search ) : IEnumerable
search string
리턴 IEnumerable

UpdateCourse() 공개 메소드

public UpdateCourse ( Course course ) : void
course Ru.GameSchool.DataLayer.Repository.Course
리턴 void

UpdateCourseGrade() 공개 메소드

public UpdateCourseGrade ( CourseGrade courseGrade ) : void
courseGrade Ru.GameSchool.DataLayer.Repository.CourseGrade
리턴 void