Blog.Web.Api.Controllers.CommentsController.GetByUser C# (CSharp) Method

GetByUser() private method

private GetByUser ( int userId ) : IHttpActionResult
userId int
return IHttpActionResult
        public IHttpActionResult GetByUser(int userId)
        {
            try
            {
                var comments = _service.GetByUser(userId);
                return Ok(comments);
            }
            catch (Exception ex)
            {
                _errorSignaler.SignalFromCurrentContext(ex);
                return BadRequest();
            }
        }