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