This commit is contained in:
mmrbnjd
2024-09-18 23:52:48 +03:30
parent 712ef32474
commit d976d75048
5 changed files with 59 additions and 13 deletions

View File

@@ -48,8 +48,8 @@ namespace Back.Controllers
public async Task<ActionResult<DateTime>> DateTimeServer()
=> Ok(DateTime.Now);
[HttpGet("LastBlog")]
public async Task<ActionResult<PagingDto<BlogDto>>> LastBlog(int PageIndex, int PageSize,string? Tag)
=> Ok(await _sBase.GetBlog(PageIndex, PageSize,Tag));
public async Task<ActionResult<PagingDto<BlogDto>>> LastBlog(int PageIndex, int PageSize,string? Tag, string? ItemSearch)
=> Ok(await _sBase.GetBlog(PageIndex, PageSize,Tag, ItemSearch));
[HttpGet("GetBlogByID/{ID}")]
public async Task<ActionResult<BlogDtoFull?>> GetBlogByID(int ID)
{