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