public IHttpActionResult Search(string tagName) { _tagsManager = TagsManagerFactory.Create(); try { var parameters = new TagsSearchParameters() { TagName = tagName }; var result = _tagsManager.Search(parameters); return(Ok(result.Payload)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }