예제 #1
0
            public MemberDisplay Convert(ResolutionContext context)
            {
                var source = (MembershipUser)context.SourceValue;
                //first convert to IMember
                var member = Mapper.Map <MembershipUser, IMember>(source);

                //then convert to MemberDisplay
                return(AutoMapperExtensions.MapWithUmbracoContext <IMember, MemberDisplay>(member, context.GetUmbracoContext()));
            }