Example #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);
        }
Example #2
0
        public static ShareCode Create(ShareCodeDto shareCodeDto)
        {
            ShareCode shareCode = Mapper.Map <ShareCodeDto, ShareCode>(shareCodeDto);

            return(shareCode);
        }