public async Task <IActionResult> GetLibraryBugsAsync(string libraryId) { try { var results = await _bugService.GetFrameworkBugsAsync(libraryId); return(Ok(results.ToList())); } catch (MongoException mongoException) { return(StatusCode(StatusCodes.Status500InternalServerError, new { message = mongoException.Message })); } }