public List<BuildScoreDetailDto> CalulateScoreDetails(BuildDto build) { var metrics = this.metricRepository.GetAll().ToList(); var buildScoreDetails = metrics.Select(x => this.scoreService.CalculateScoreDetail(TypeAdapterHelper.Adapt<Build>(build), TypeAdapterHelper.Adapt<Metric>(x))).ToList(); return TypeAdapterHelper.Adapt<List<BuildScoreDetailDto>>(buildScoreDetails); }
public List<BuildScoreDetailDto> Post(BuildDto build) { return this.scoreService.CalulateScoreDetails(build); }