//Add Transformer object
        async Task <IActionResult> AddTransformer([FromBody] TransformerViewModel transformer, TransformerType type, string strCreatedAtRoute)
        {
            if (ModelState.IsValid)
            {
                var transformerObject = _factory.Create(transformer);
                transformerObject.Allegiance = type;

                transformerObject = await _datastore.AddTransformerAsync(transformerObject);

                return(CreatedAtRoute(strCreatedAtRoute, transformerObject));
            }
            else
            {
                return(BadRequest(Responses.ERROR_INVALID_INPUTS_ADD_TRANSFORMER));
            }
        }