Skip to content

Commit 5e55bbf

Browse files
authored
Update Basics.md
1 parent 6d5b4fc commit 5e55bbf

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/en/Basics.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Basics
2-
- Let say you have a Model like that:
32

3+
Entity:
44
```csharp
55
public class Blog
66
{
@@ -12,18 +12,17 @@ public class Blog
1212
}
1313
```
1414

15-
- Let's create a filtering DTO like that:
16-
15+
Create a filter object for Blog Entity:
1716
```csharp
18-
public class BlogFilterDto : FilterBase<Blog>
17+
public class BlogFilterDto : FilterBase
1918
{
2019
public int CategoryId { get; set; }
2120
public int Priority { get; set; }
2221
public bool? IsPublished { get; set; }
2322
}
2423
```
2524

26-
- Let's create a sample Controller and get the DTO from querystring
25+
- Create a sample Controller and get the DTO from querystring:
2726

2827
```csharp
2928
public class BlogsController : ControllerBase
@@ -48,4 +47,4 @@ public class BlogsController : ControllerBase
4847
* `/Blogs?IsPublished=True&Priority=1`
4948
* `/Blogs?IsPublished=True&Priority=5&CategoryId=1`
5049

51-
***
50+
***

0 commit comments

Comments
 (0)