Esempio n. 1
0
        public List <UserShippingAddress> List(int userId, IChangePage changePage = null)
        {
            Vnet_User_ConsigneeCollection daAddressCollection = new Vnet_User_ConsigneeCollection();

            daAddressCollection.ChangePage = changePage;
            daAddressCollection.ListByUserId(userId);
            var list = MapProvider.Map <UserShippingAddress>(daAddressCollection.DataTable);

            return(list);
        }
Esempio n. 2
0
        public static List <object> GetRecommend(int userId, IChangePage changePage)
        {
            Vnet_UserCollection daUserCollection = new Vnet_UserCollection();

            daUserCollection.ChangePage = changePage;
            daUserCollection.ListByReferee(userId);
            string[] columnSelector = new string[] { "USER_CODE", "USER_NAME", "USER_LEVEL", "AUTH_STATUS", "PHOTO_URL", "IS_LOCKED", "CREATE_TIME" };

            List <object> data = daUserCollection.DataTable.ToDynamic(filterColumns: columnSelector, keyCase: DynamicConverter.KeyType.PascalCase, OnFieldGenerating: MaskedSensitiveData);

            return(data);
        }