コード例 #1
0
        public FullPageViewModel Create(FullPageViewModel page)
        {
            var result = new FullPageViewModel();

            var newEntity     = GenericMapper.MapObject <Page>(page);
            var createdEntity = _pagesService.Create(newEntity);

            if (createdEntity != null)
            {
                result = GenericMapper.MapObject <FullPageViewModel>(createdEntity);
            }

            return(result);
        }