示例#1
0
        public static void PMSaveLocation(string selectedIds, long userid)
        {
            iUserCreationClient userClient = new iUserCreationClient();
            CustomProfile       profile    = CustomProfile.GetProfile();
            string ids = selectedIds.ToString();

            string[] words = ids.Split(',');
            for (int i = 1; i < words.Length; i++)
            {
                long locationid = long.Parse(words[i]);
                long count      = userClient.GetDuplicatlocationUser(userid, locationid, profile.DBConnection._constr);
                if (count <= 0)
                {
                    userClient.InsertIntoUserLocation(userid, locationid, profile.DBConnection._constr);
                }
            }
        }