From 51a4f10f32910b9cf4c92c8a01dd32b5d53728f6 Mon Sep 17 00:00:00 2001 From: enisn Date: Wed, 31 Jul 2024 16:42:32 +0300 Subject: [PATCH] Enhance single-layer mongodb documentation --- docs/en/tutorials/todo/single-layer/index.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/en/tutorials/todo/single-layer/index.md b/docs/en/tutorials/todo/single-layer/index.md index 8ed78c1d270..9afbbd88338 100644 --- a/docs/en/tutorials/todo/single-layer/index.md +++ b/docs/en/tutorials/todo/single-layer/index.md @@ -183,7 +183,7 @@ namespace TodoApp.Entities; public class TodoItem : BasicAggregateRoot { - public string Text { get; set; } + public string Text { get; set; } = string.Empty; } ```` @@ -288,7 +288,7 @@ namespace TodoApp.Services.Dtos; public class TodoItemDto { public Guid Id { get; set; } - public string Text { get; set; } + public string Text { get; set; } = string.Empty; } ``` @@ -420,7 +420,7 @@ namespace TodoApp.Pages; public class IndexModel : AbpPageModel { - public List TodoItems { get; set; } + public List TodoItems { get; set; } = new(); private readonly TodoAppService _todoAppService; @@ -543,8 +543,6 @@ As for the final touch, open the `Index.cshtml.css` file in the `Pages` folder a #TodoList li { padding: 5px; margin: 5px 0px; - border: 1px solid #cccccc; - background-color: #f5f5f5; } #TodoList li i