Exemplo n.º 1
0
        public async Task <PageViewModel> DeletePageAsync(int pageId)
        {
            var page = await _pageStore.GetPageByIdAsync(pageId);

            if (page == null)
            {
                return(null);
            }

            await _pageStore.DeletePageAsync(page);

            var result = _mapper.Map <PageViewModel>(page);

            return(result);
        }