Blog.Web.Api.Controllers.PostLikesController.Get C# (CSharp) 메소드

Get() 개인적인 메소드

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