Blog.Web.Api.Controllers.CommunityController.GetCreatedByUser C# (CSharp) 메소드

GetCreatedByUser() 개인적인 메소드

private GetCreatedByUser ( int userId ) : IHttpActionResult
userId int
리턴 IHttpActionResult
        public IHttpActionResult GetCreatedByUser(int userId)
        {
            try
            {
                var communities = _communityResource.GetCreatedByUser(userId);
                return Ok(communities);
            }
            catch (Exception ex)
            {
                _errorSignaler.SignalFromCurrentContext(ex);
                return BadRequest();
            }
        }