From 5e55bbf819bc1640ba2286d8fc7c8fc10a8dfdf1 Mon Sep 17 00:00:00 2001 From: Enis Necipoglu Date: Tue, 25 Oct 2022 11:30:50 +0300 Subject: [PATCH] Update Basics.md --- docs/en/Basics.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/en/Basics.md b/docs/en/Basics.md index d617849..1c636b8 100644 --- a/docs/en/Basics.md +++ b/docs/en/Basics.md @@ -1,6 +1,6 @@ # Basics -- Let say you have a Model like that: +Entity: ```csharp public class Blog { @@ -12,10 +12,9 @@ public class Blog } ``` -- Let's create a filtering DTO like that: - +Create a filter object for Blog Entity: ```csharp -public class BlogFilterDto : FilterBase +public class BlogFilterDto : FilterBase { public int CategoryId { get; set; } public int Priority { get; set; } @@ -23,7 +22,7 @@ public class BlogFilterDto : FilterBase } ``` -- Let's create a sample Controller and get the DTO from querystring +- Create a sample Controller and get the DTO from querystring: ```csharp public class BlogsController : ControllerBase @@ -48,4 +47,4 @@ public class BlogsController : ControllerBase * `/Blogs?IsPublished=True&Priority=1` * `/Blogs?IsPublished=True&Priority=5&CategoryId=1` -*** \ No newline at end of file +***