Blog.Web.Api.Controllers.AlbumController.GetByUser C# (CSharp) Method

GetByUser() private method

private GetByUser ( int userId ) : IHttpActionResult
userId int
return IHttpActionResult
        public IHttpActionResult GetByUser(int userId)
        {
            
            try
            {
                var albums = _service.GetByUser(userId) ?? new List<Album>();
                return Ok(albums);
            }
            catch (Exception ex)
            {
                _errorSignaler.SignalFromCurrentContext(ex);
                return BadRequest();
            }
        }

Same methods

AlbumController::GetByUser ( string username, string albumName ) : IHttpActionResult