From 11f61c0063397df6d04ae2c2d963c86745719d73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Onur=20P=C4=B1=C3=A7akc=C4=B1?= Date: Wed, 22 Mar 2023 11:54:07 +0300 Subject: [PATCH] Update Post.md --- .../2023-03-20- IdentityUser-Relationships/Post.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/en/Community-Articles/2023-03-20- IdentityUser-Relationships/Post.md b/docs/en/Community-Articles/2023-03-20- IdentityUser-Relationships/Post.md index abe1143ac6..48db4e9557 100644 --- a/docs/en/Community-Articles/2023-03-20- IdentityUser-Relationships/Post.md +++ b/docs/en/Community-Articles/2023-03-20- IdentityUser-Relationships/Post.md @@ -238,7 +238,7 @@ namespace IdentityRelationship.Departments; public interface IDepartmentAppService : IApplicationService { - public Task> GetAsync(); + public Task> GetAsync(); } ``` @@ -263,12 +263,10 @@ public class DepartmentAppService : IdentityRelationshipAppService, IDepartmentA _departmentRepository = departmentRepository; } - public async Task> GetAsync() + public async Task> GetAsync() { var departments = await _departmentRepository.GetListAsync(); - var totalCount = await _departmentRepository.GetCountAsync(); - - return new PagedResultDto(totalCount, + return new ListResultDto( ObjectMapper.Map, List>(departments)); } }