File tree Expand file tree Collapse file tree
src/2-Clients/Api/Controllers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using CanBeYours . Application . Dtos ;
22using CanBeYours . Application . Services . DemoThings ;
3+ using CanBeYours . Core . Domain . DemoThings ;
34using CodeBlock . DevKit . Contracts . Dtos ;
45using CodeBlock . DevKit . Core . Helpers ;
56using CodeBlock . DevKit . Web . Api . Filters ;
@@ -59,15 +60,21 @@ public async Task<Result<SearchOutputDto<GetDemoThingDto>>> Get(
5960 int pageNumber ,
6061 int recordsPerPage ,
6162 SortOrder sortOrder ,
62- [ FromQuery ] string term = null
63+ [ FromQuery ] string term = null ,
64+ [ FromQuery ] DemoThingType ? type = null ,
65+ [ FromQuery ] DateTime ? fromDateTime = null ,
66+ [ FromQuery ] DateTime ? toDateTime = null
6367 )
6468 {
6569 var dto = new SearchDemoThingsInputDto
6670 {
6771 Term = term ,
6872 PageNumber = pageNumber ,
6973 RecordsPerPage = recordsPerPage ,
74+ FromDateTime = fromDateTime ,
75+ ToDateTime = toDateTime ,
7076 SortOrder = sortOrder ,
77+ Type = type ,
7178 } ;
7279 return await _demoThingService . SearchDemoThings ( dto ) ;
7380 }
You can’t perform that action at this time.
0 commit comments