public async Task<HttpResponseMessage> GetScenario(Guid modelId, Guid id) { var scenario = await _modelRepository.GetScenario(id); var hasResults = await _resultsRepository.HasResultsForScenario(id); var result = new ScenarioViewModel(scenario, hasResults); return Request.CreateResponse(HttpStatusCode.OK, result); }
public async Task <HttpResponseMessage> GetScenario(Guid modelId, Guid id) { var scenario = await _modelRepository.GetScenario(id); var hasResults = await _resultsRepository.HasResultsForScenario(id); var result = new ScenarioViewModel(scenario, hasResults); return(Request.CreateResponse(HttpStatusCode.OK, result)); }