Exemplo n.º 1
0
        private OnlineStoreMembershipUser ConvertFrom(UserDto userDto)
        {
            if (userDto == null)
            {
                return(null);
            }

            var user = new OnlineStoreMembershipUser("OnlineStoreMembershipProvider",
                                                     userDto.UserName,
                                                     userDto.Id,
                                                     userDto.Email,
                                                     "",
                                                     "",
                                                     true,
                                                     userDto.IsDisabled ?? true,
                                                     userDto.RegisteredDate ?? DateTime.MinValue,
                                                     userDto.LastLogonDate ?? DateTime.MinValue,
                                                     DateTime.MinValue,
                                                     DateTime.MinValue,
                                                     DateTime.MinValue,
                                                     userDto.Contact,
                                                     userDto.PhoneNumber,
                                                     userDto.ContactAddress,
                                                     userDto.DeliveryAddress);

            return(user);
        }
        private OnlineStoreMembershipUser ConvertFrom(UserDto userDto)
        {
            if (userDto == null)
                return null;

            var user = new OnlineStoreMembershipUser("OnlineStoreMembershipProvider",
                userDto.UserName,
                userDto.Id,
                userDto.Email,
                "",
                "",
                true,
                userDto.IsDisabled ?? true,
                userDto.RegisteredDate ?? DateTime.MinValue,
                userDto.LastLogonDate ?? DateTime.MinValue,
                DateTime.MinValue,
                DateTime.MinValue,
                DateTime.MinValue,
                userDto.Contact,
                userDto.PhoneNumber,
                userDto.ContactAddress,
                userDto.DeliveryAddress);

            return user;
        }