public async Task <HttpResponseMessage> GetSymptomDisciminator(string symptomDisciminatorCode, string cacheKey = null) { #if !DEBUG cacheKey = cacheKey ?? string.Format("SymptomDisciminator-{0}", symptomDisciminatorCode); var cacheValue = await _cacheManager.Read(cacheKey); if (cacheValue != null) { return(cacheValue.AsHttpResponse()); } #endif return(await _symptomDisciminatorService.GetSymptomDisciminator(symptomDisciminatorCode).AsHttpResponse()); }
public async Task <JsonResult <SymptomDiscriminator> > GetSymptomDisciminator(string symptomDisciminatorCode, string cacheKey = null) { var symptomDiscriminators = await _symptomDisciminatorService.GetSymptomDisciminator(symptomDisciminatorCode); return(Json(symptomDiscriminators)); }