Example #1
0
 public static VmScenarioTotals Build(SmScenarioTotals results)
 {
     return(new VmScenarioTotals {
         ProductsCost = results.ProductsCost,
         ProductsAcceptedCost = results.ProductsAcceptedCost,
         ProductsAcceptedCount = results.ProductsAcceptedCount,
         ProductsRejectedCount = results.ProductsRejectedCount
     });
 }
Example #2
0
 public async Task<SmScenarioTotals> GetScenarioTotals(int scenarioId)
 {
     var results = await _scenarioRepository.GetScenarioTotals(scenarioId);
     return SmScenarioTotals.Build(results);
 }