Blog.Web.Api.Controllers.CommunityController.GetCreatedByUser C# (CSharp) Method

GetCreatedByUser() private method

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