public async Task <IActionResult> GetOverallScore(int transformerid) { var transformerObject = await GetTransformer(transformerid); var transformer = GetTransformerObjectFromActionResult(transformerObject); if (transformer != null) { var result = await _datastore.GetTransformerScoreAsync(transformerid); return(Ok(result)); } return(BadRequest(Responses.INVALID_TRANSFORMER_ID)); }