public async Task Exists()

in src/YouTrackSharp/Issues/IssuesService.cs [60:83]


        public async Task<bool> Exists(string issueId)
        {
            if (string.IsNullOrEmpty(issueId))
            {
                throw new ArgumentNullException(nameof(issueId));
            }
            
            var client = await _connection.GetAuthenticatedApiClient();
            try
            {
                await client.IssuesGetAsync(issueId, "id", default(System.Threading.CancellationToken));
            }
            catch (YouTrackErrorException e)
            {
                if (e.StatusCode == (int)HttpStatusCode.NotFound)
                {
                    return false;
                }
                
                throw;
            }

            return true;
        }