public static void Copy(StackExchangeQuestions response, string groupId, string groupName)
        {
            try
            {
                QuestionGroup qg = APIMASH_StackExchangeCollection.GetGroupByTitle(groupName);
                if (qg != null)
                    qg.Items.Clear();
                else
                    qg = new QuestionGroup(groupId, groupName );

                response.Copy(qg);
                _questionData._allGroups.Add(qg);
            }
            catch (Exception e)
            {
                throw (e);
            }
        }
Beispiel #2
0
        public static void Copy(StackExchangeQuestions response, string groupId, string groupName)
        {
            try
            {
                QuestionGroup qg = APIMASH_StackExchangeCollection.GetGroupByTitle(groupName);
                if (qg != null)
                {
                    qg.Items.Clear();
                }
                else
                {
                    qg = new QuestionGroup(groupId, groupName);
                }

                response.Copy(qg);
                _questionData._allGroups.Add(qg);
            }
            catch (Exception e)
            {
                throw (e);
            }
        }