예제 #1
0
        public static ShareCode Create(ShareCodeDto shareCodeDto)
        {
            ShareCode shareCode = new ShareCode
            {
                EntityId               = shareCodeDto.EntityId,
                EntityType             = shareCodeDto.EntityType,
                Id                     = shareCodeDto.Id,
                ShortId                = shareCodeDto.ShortId,
                UrlFriendlyEntityTitle = shareCodeDto.UrlFriendlyEntityTitle
            };

            return(shareCode);
        }
예제 #2
0
        public static ShareCode Create(ShareCodeDto shareCodeDto)
        {
            ShareCode shareCode = Mapper.Map <ShareCodeDto, ShareCode>(shareCodeDto);

            return(shareCode);
        }