public void EvaluateHomework(HomeworkEvaluationDto homeworkEvaluationDto) { var homeworkEvaluation = Mapper.Map <HomeworkEvaluation>(homeworkEvaluationDto); this.homeworkEvaluationRepository.Insert(homeworkEvaluation); }
public IActionResult EvaluateHomework(HomeworkEvaluationDto homeworkEvaluation) { this.homeworkEvaluationService.EvaluateHomework(homeworkEvaluation); return(this.Ok()); }