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

Get() private method

private Get ( int postId ) : IHttpActionResult
postId int
return IHttpActionResult
        public IHttpActionResult Get(int postId)
        {
            try
            {
                var postLikes = _service.Get(postId);
                return Ok(postLikes);
            }
            catch (Exception ex)
            {
                _errorSignaler.SignalFromCurrentContext(ex);
                return BadRequest();
            }
        }