|
|
@ -1,4 +1,6 @@ |
|
|
using System; |
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
|
|
using System; |
|
|
|
|
|
using System.Security.Cryptography.X509Certificates; |
|
|
using System.Threading.Tasks; |
|
|
using System.Threading.Tasks; |
|
|
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|
|
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|
|
using Volo.Abp.EntityFrameworkCore; |
|
|
using Volo.Abp.EntityFrameworkCore; |
|
|
@ -12,6 +14,11 @@ namespace Volo.CmsKit.Blogs |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public async Task<bool> ExistsAsync(Guid blogId) |
|
|
|
|
|
{ |
|
|
|
|
|
return await (await GetQueryableAsync()).AnyAsync(x => x.Id == blogId); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public Task<Blog> GetByUrlSlugAsync(string urlSlug) |
|
|
public Task<Blog> GetByUrlSlugAsync(string urlSlug) |
|
|
{ |
|
|
{ |
|
|
return GetAsync(x => x.UrlSlug == urlSlug); |
|
|
return GetAsync(x => x.UrlSlug == urlSlug); |
|
|
|