Update README.md
This commit is contained in:
parent
07eed00f00
commit
55afafa5ca
@ -122,8 +122,9 @@ Assert.AreEqual(first?.FirstName, "David");
|
|||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
[HttpGet][Route("FindClients")]
|
[HttpGet][Route("FindClients")]
|
||||||
public IHttpActionResult FindClients(string filterField = null, string filterValue = null, string sortProperty = "Id", int? page = null, int pageSize = 50)
|
public IHttpActionResult FindClients(string filterField = null, string filterValue = null,
|
||||||
{
|
string sortProperty = "Id", int? page = null, int pageSize = 50)
|
||||||
|
{
|
||||||
var ctx = new MyDbContext();
|
var ctx = new MyDbContext();
|
||||||
var query = ctx.Clients.AsQueryable();
|
var query = ctx.Clients.AsQueryable();
|
||||||
|
|
||||||
@ -153,5 +154,5 @@ Assert.AreEqual(first?.FirstName, "David");
|
|||||||
pages = pages,
|
pages = pages,
|
||||||
data = clients
|
data = clients
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user