Blog.Web.Api.Controllers.CommunityController.GetCreatedByUser C# (CSharp) Méthode

GetCreatedByUser() private méthode

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