Blog.Web.Api.Controllers.PostContentController.GetList C# (CSharp) Method

GetList() private method

private GetList ( int postId ) : IHttpActionResult
postId int
return IHttpActionResult
        public IHttpActionResult GetList(int postId)
        {
            try
            {
                var postContents = _postContentsSvc.GetByPostId(postId);
                return Ok(postContents);
            }
            catch (Exception ex)
            {
                _errorSignaler.SignalFromCurrentContext(ex);
                return BadRequest();
            }
        }