Blog.Web.Api.Controllers.CommentsController.GetByPost C# (CSharp) Méthode

GetByPost() private méthode

private GetByPost ( int postId ) : IHttpActionResult
postId int
Résultat IHttpActionResult
        public IHttpActionResult GetByPost(int postId)
        {
            try
            {
                var comments = _service.GetByPostId(postId);
                return Ok(comments);
            }
            catch (Exception ex)
            {
                _errorSignaler.SignalFromCurrentContext(ex);
                return BadRequest();
            }
        }