From 8aec1e0c062cdd289973599dd1a532bbed01cc68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Sat, 19 Sep 2020 21:40:39 +0300 Subject: [PATCH] Add Blazor Tip --- docs/en/Tutorials/Part-5.md | 2 ++ docs/en/Tutorials/Part-9.md | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/en/Tutorials/Part-5.md b/docs/en/Tutorials/Part-5.md index 14b3a09b08..2c0ba3a16d 100644 --- a/docs/en/Tutorials/Part-5.md +++ b/docs/en/Tutorials/Part-5.md @@ -452,6 +452,8 @@ Add the following code block to the end of the `Books.razor` file: We will use these `bool` fields to check the permissions. +> **Blazor Tip**: While adding the C# code into a `@code` block is fine for small code parts, it is suggested to use the code behind approach to develop a more maintainable code base when the code block becomes longer. We will use this approach for the authors part. + #### Hide the New Book Button Wrap the *New Book* button by an `if` block as shown below: diff --git a/docs/en/Tutorials/Part-9.md b/docs/en/Tutorials/Part-9.md index 0b155be681..13efab3c4e 100644 --- a/docs/en/Tutorials/Part-9.md +++ b/docs/en/Tutorials/Part-9.md @@ -493,7 +493,7 @@ That's all! You can run the application and try to edit an author. {{else if UI == "NG"}} -## The Author List Page, Create & Delete Authors +## The Author Management Page Run the following command line to create a new module, named `AuthorModule` in the root folder of the angular application: @@ -834,7 +834,9 @@ That's all! This is a fully working CRUD page, you can create, edit and delete a {{if UI == "Blazor"}} +## The Author Management Page +TODO {{end}}