public async Task <IActionResult> Post([FromBody] Patient patient) { var decisionSupportResults = await _decisionSupportService.ProcessCollectedDataAsync(patient); var managementPlan = _managementPlanService.Generate(decisionSupportResults); return(File(managementPlan.FileContents, GetContentType(managementPlan.FileExtension))); }
public async Task <IEnumerable <DecisionSupportResult> > Post([FromBody] Patient patient) { var decisionSupportResults = await _decisionSupportService.ProcessCollectedDataAsync(patient); return(decisionSupportResults); }