示例#1
0
        public ReturnState AddComment(CourseCommentView model)
        {
            var filters = new UtilityService().GetFilterLisst();

            model.Content = Utilities.Filter(model.Content, filters);
            return(CourseCommentOperator.AddCourseComment(model) ? ReturnState.ReturnOK : ReturnState.ReturnError);
        }
示例#2
0
 public ReturnState RemoveCommentById(int id)
 {
     return(CourseCommentOperator.RemoveCourseCommentById(id) ? ReturnState.ReturnOK : ReturnState.ReturnError);
 }
示例#3
0
 public ReturnState RemoveComment(CourseCommentView model)
 {
     return(CourseCommentOperator.RemoveCourseComment(model) ? ReturnState.ReturnOK : ReturnState.ReturnError);
 }
示例#4
0
 public int GetValidFloor(string code)
 {
     return(CourseCommentOperator.GetValidFloor(code));
 }
示例#5
0
 public List <CourseCommentView> GetCommentByCode(string code)
 {
     return(CourseCommentOperator.GetCourseCommentListByCode(code));
 }