public IActionResult ShowMap(AnalystViewModel model) { AnalystService service = new AnalystService(); model.ZipCodeAtRisk = service.GetZipCode(model.PatientCondition); return(View(model)); }
public IHttpActionResult GetAnalyst(int gameId, int currentTurn) { using (AnalystService analystService = new AnalystService()) { var result = analystService.getRecommendations(gameId, currentTurn); var tempResult = result != null?result.Where(a => a.Turn == currentTurn).ToList() : null; return(Json(tempResult)); } }