Example #1
0
        public async Task <ContentDto> GetCMSContentByName(string pageName)
        {
            var content = await _contentManager.GetCMSContentByNameAsync(pageName);

            if (content == null)
            {
                throw new UserFriendlyException("Could not found the content, maybe it's deleted.");
            }
            return(content.MapTo <ContentDto>());
        }