public async Task <IActionResult> UpdateTransformer(int transformerid, [FromBody] TransformerUpdateViewModel updatedTransformerViewModel)
        {
            if (ModelState.IsValid)
            {
                var transformerObject = await GetTransformer(transformerid);

                var transformer = GetTransformerObjectFromActionResult(transformerObject);

                if (transformer != null)
                {
                    var updatedTransformerObject =
                        _factory.UpdateTransformer(updatedTransformerViewModel, transformer as Transformer);
                    var result = await _datastore.UpdateTransformerAsync(transformerid, updatedTransformerObject);

                    return(Ok(result));
                }
            }

            return(BadRequest(Responses.INVALID_TRANSFORMER_ID));
        }