Browse Source

Update ContentAppService.cs

pull/6821/head
Ahmet 5 years ago
parent
commit
5461d4436b
  1. 8
      modules/cms-kit/src/Volo.CmsKit.Common.Application/Volo/CmsKit/Contents/ContentAppService.cs

8
modules/cms-kit/src/Volo.CmsKit.Common.Application/Volo/CmsKit/Contents/ContentAppService.cs

@ -8,16 +8,16 @@ namespace Volo.CmsKit.Contents
{
public class ContentAppService : CmsKitAppServiceBase, IContentAppService
{
private readonly IContentRepository _contentRepository;
protected readonly IContentRepository ContentRepository;
public ContentAppService(IContentRepository contentRepository)
{
_contentRepository = contentRepository;
ContentRepository = contentRepository;
}
public async Task<ContentDto> GetAsync(string entityType, string entityId)
public virtual async Task<ContentDto> GetAsync(string entityType, string entityId)
{
var entity = await _contentRepository.FindAsync(entityType, entityId); // Tenant???
var entity = await ContentRepository.FindAsync(entityType, entityId); // Tenant???
return ObjectMapper.Map<Content, ContentDto>(entity);
}

Loading…
Cancel
Save