Blog.Web.Api.Controllers.TagsController.Get C# (CSharp) Method

Get() private method

private Get ( string tagName ) : IHttpActionResult
tagName string
return IHttpActionResult
        public IHttpActionResult Get(string tagName)
        {
            try
            {
                var tags = _tag.GetByName(tagName) ?? new List<Tag>();
                return Ok(tags);
            }
            catch (Exception ex)
            {
                _errorSignaler.SignalFromCurrentContext(ex);
                return BadRequest();
            }
        }
    }
TagsController