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); }
public ReturnState RemoveCommentById(int id) { return(CourseCommentOperator.RemoveCourseCommentById(id) ? ReturnState.ReturnOK : ReturnState.ReturnError); }
public ReturnState RemoveComment(CourseCommentView model) { return(CourseCommentOperator.RemoveCourseComment(model) ? ReturnState.ReturnOK : ReturnState.ReturnError); }
public int GetValidFloor(string code) { return(CourseCommentOperator.GetValidFloor(code)); }
public List <CourseCommentView> GetCommentByCode(string code) { return(CourseCommentOperator.GetCourseCommentListByCode(code)); }