コード例 #1
0
        public ReportReturnResource Build(ResultsModel resultsModel)
        {
            var returnResource = new ReportReturnResource();

            returnResource.ReportResults.Add(resultsModel.ConvertFinalModelToResource());

            return(returnResource);
        }
コード例 #2
0
        public ReportReturnResource Build(IEnumerable <ResultsModel> resultsModels)
        {
            var returnResource = new ReportReturnResource();

            foreach (var resultsModel in resultsModels)
            {
                returnResource.ReportResults.Add(resultsModel.ConvertFinalModelToResource());
            }

            return(returnResource);
        }