add frombody to updatecomments count api
This commit is contained in:
parent
2b25c55a70
commit
50911e0de7
@ -125,7 +125,7 @@ namespace PortBlog.API.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost("UpdatePostCommentsCount")]
|
[HttpPost("UpdatePostCommentsCount")]
|
||||||
public async Task<ActionResult> UpdatePostCommentsCount(string blogUrl, string postSlug, int commentsCount)
|
public async Task<ActionResult> UpdatePostCommentsCount(string blogUrl, string postSlug, [FromBody] int commentsCount)
|
||||||
{
|
{
|
||||||
if (!await _blogRepository.PostExistsAsync(blogUrl, postSlug))
|
if (!await _blogRepository.PostExistsAsync(blogUrl, postSlug))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user