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