diff --git a/RMuseum/Controllers/GanjoorController.cs b/RMuseum/Controllers/GanjoorController.cs index 9cb48f5e..0939184d 100644 --- a/RMuseum/Controllers/GanjoorController.cs +++ b/RMuseum/Controllers/GanjoorController.cs @@ -496,6 +496,7 @@ namespace RMuseum.Controllers /// get recent comments /// /// + /// /// [HttpGet] [Route("comments")] @@ -503,9 +504,9 @@ namespace RMuseum.Controllers [ProducesResponseType((int)HttpStatusCode.OK, Type = typeof(IEnumerable))] [ProducesResponseType((int)HttpStatusCode.BadRequest, Type = typeof(string))] - public async Task GetRecentComments([FromQuery] PagingParameterModel paging) + public async Task GetRecentComments([FromQuery] PagingParameterModel paging, Guid? filterUserId = null) { - var comments = await _ganjoorService.GetRecentComments(paging, Guid.Empty, true); + var comments = await _ganjoorService.GetRecentComments(paging, filterUserId == null ? Guid.Empty : (Guid)filterUserId, true); if (!string.IsNullOrEmpty(comments.ExceptionString)) { return BadRequest(comments.ExceptionString); diff --git a/RMuseum/RMuseum.xml b/RMuseum/RMuseum.xml index b252ff52..73158777 100644 --- a/RMuseum/RMuseum.xml +++ b/RMuseum/RMuseum.xml @@ -765,11 +765,12 @@ - + get recent comments +