Esempio n. 1
0
        public async Task <SelectList> GetScenario(string hashIdSelectedValue = null)
        {
            var scenarios = await _scenarioService.GetAllAsync();

            return(scenarios.IsValid ? new SelectList(scenarios.Result, "ScenarioKey", "ScenarioName", hashIdSelectedValue) : null);
        }