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)); } }