public questions RemoveQuestions(questions _item, bool _complete = false) { account_questions.Remove(_item); if(_complete) Meridian.Default.questionsStore.Delete(_item); return _item; }
public questions AddQuestions(questions _item, bool _insertToStore = false) { if(account_questions.IndexOf(_item) != -1) return _item; account_questions.Add(_item); _item.account_id = id; if(_insertToStore && !Meridian.Default.questionsStore.Exists(_item.id)) { Meridian.Default.questionsStore.Insert(_item); _item.LoadAggregations(Meridian.Default); } return _item; }