Browse Source
rename GetAuthorsHasBlogPosts as GetAuthorsHasBlogPostsAsync
pull/12048/head
Musa Demir
5 years ago
No known key found for this signature in database
GPG Key ID: 117DF92322553DC8
5 changed files with
7 additions and
7 deletions
-
modules/cms-kit/src/Volo.CmsKit.Public.Application.Contracts/Volo/CmsKit/Public/Blogs/IBlogPostPublicAppService.cs
-
modules/cms-kit/src/Volo.CmsKit.Public.Application/Volo/CmsKit/Public/Blogs/BlogPostPublicAppService.cs
-
modules/cms-kit/src/Volo.CmsKit.Public.HttpApi.Client/ClientProxies/BlogPostPublicClientProxy.Generated.cs
-
modules/cms-kit/src/Volo.CmsKit.Public.HttpApi/Volo/CmsKit/Public/Blogs/BlogPostPublicController.cs
-
modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/Public/CmsKit/Blogs/Index.cshtml.cs
|
|
|
@ -13,5 +13,5 @@ public interface IBlogPostPublicAppService : IApplicationService |
|
|
|
|
|
|
|
Task<BlogPostPublicDto> GetAsync([NotNull] string blogSlug, [NotNull] string blogPostSlug); |
|
|
|
|
|
|
|
Task<List<CmsUserDto>> GetAuthorsHasBlogPosts(); |
|
|
|
Task<List<CmsUserDto>> GetAuthorsHasBlogPostsAsync(); |
|
|
|
} |
|
|
|
|
|
|
|
@ -46,7 +46,7 @@ public class BlogPostPublicAppService : CmsKitPublicAppServiceBase, IBlogPostPub |
|
|
|
ObjectMapper.Map<List<BlogPost>, List<BlogPostPublicDto>>(blogPosts)); |
|
|
|
} |
|
|
|
|
|
|
|
public virtual async Task<List<CmsUserDto>> GetAuthorsHasBlogPosts() |
|
|
|
public virtual async Task<List<CmsUserDto>> GetAuthorsHasBlogPostsAsync() |
|
|
|
{ |
|
|
|
var authors = await BlogPostRepository.GetAuthorsHasBlogPosts(); |
|
|
|
return ObjectMapper.Map<List<CmsUser>, List<CmsUserDto>>(authors); |
|
|
|
|
|
|
|
@ -35,8 +35,8 @@ public partial class BlogPostPublicClientProxy : ClientProxyBase<IBlogPostPublic |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public virtual async Task<List<CmsUserDto>> GetAuthorsHasBlogPosts() |
|
|
|
public virtual async Task<List<CmsUserDto>> GetAuthorsHasBlogPostsAsync() |
|
|
|
{ |
|
|
|
return await RequestAsync<List<CmsUserDto>>(nameof(GetAuthorsHasBlogPosts)); |
|
|
|
return await RequestAsync<List<CmsUserDto>>(nameof(GetAuthorsHasBlogPostsAsync)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -39,8 +39,8 @@ public class BlogPostPublicController : CmsKitPublicControllerBase, IBlogPostPub |
|
|
|
} |
|
|
|
|
|
|
|
[HttpGet] |
|
|
|
public virtual Task<List<CmsUserDto>> GetAuthorsHasBlogPosts() |
|
|
|
public virtual Task<List<CmsUserDto>> GetAuthorsHasBlogPostsAsync() |
|
|
|
{ |
|
|
|
return BlogPostPublicAppService.GetAuthorsHasBlogPosts(); |
|
|
|
return BlogPostPublicAppService.GetAuthorsHasBlogPostsAsync(); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -49,6 +49,6 @@ public class IndexModel : CmsKitPublicPageModelBase |
|
|
|
AuthorId = AuthorId |
|
|
|
}); |
|
|
|
|
|
|
|
Authors = await BlogPostPublicAppService.GetAuthorsHasBlogPosts(); |
|
|
|
Authors = await BlogPostPublicAppService.GetAuthorsHasBlogPostsAsync(); |
|
|
|
} |
|
|
|
} |
|
|
|
|