public IActionResult CreateTags([FromHeader(Name = "data-type")] string dataType, [FromBody] string jsonInput) { var tags = _tagsFactory.CreateTags(dataType, jsonInput); return(new ObjectResult(tags) { StatusCode = 200 }); }
public IActionResult CreateTags([FromHeader(Name = "data-type")] string dataType, [FromBody] jsonInput) { var tagDto = _tagsFactory.CreateTags(dataType, jsonInput); return(Ok(tagDto)); }