public ReportReturnResource Build(ResultsModel resultsModel) { var returnResource = new ReportReturnResource(); returnResource.ReportResults.Add(resultsModel.ConvertFinalModelToResource()); return(returnResource); }
public ReportReturnResource Build(IEnumerable <ResultsModel> resultsModels) { var returnResource = new ReportReturnResource(); foreach (var resultsModel in resultsModels) { returnResource.ReportResults.Add(resultsModel.ConvertFinalModelToResource()); } return(returnResource); }