public virtual async Task <PageDto> FindBySlugAsync(string slug) { var page = await PageRepository.FindBySlugAsync(slug); if (page == null) { return(null); } var pageDto = ObjectMapper.Map <Page, PageDto>(page); pageDto.ContentFragments = await ContentParser.ParseAsync(page.Content); return(pageDto); }