You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/controllers/ecs/evaluations_controller.rb

18 lines
544 B

class Ecs::EvaluationsController < Ecs::CourseBaseController
def show
service = Ecs::QueryCourseEvaluationService.new(current_course)
render_ok(
course_targets: service.course_targets,
course_achievement: service.course_achievement,
course_rate: service.course_rate,
graduation_subitem_evaluations: service.graduation_subitem_evaluations,
score_levels: service.score_levels
)
end
def create
Ecs::CalculateCourseEvaluationService.call(current_course)
render_ok
end
end