Exemplo n.º 1
0
        public IList <vMemberQuestionAnswerModel> GetMemberQuestionAnswer(Nullable <Int32> MemberID, string EmailAddress, int SourceID)
        {
            String logMethodName = "- GetMemberQuestionAnswer(Nullable<Int32> MemberID, string EmailAddress) :";

            Log.Debug(logMethodName + "Begin Method");
            List <vMemberQuestionAnswerModel> returnList = new List <vMemberQuestionAnswerModel>();

            try
            {
                var QuestionAnswerList = SaltServiceAgent.GetMemberQuestionAnswer(MemberID, EmailAddress, SourceID);
                foreach (var QuestionAnswer in QuestionAnswerList)
                {
                    returnList.Add(QuestionAnswer.ToDomainObject());
                }
            }
            catch (Exception ex)
            {
                Log.Error(logMethodName + "Exception =>", ex);
            }
            Log.Debug(logMethodName + "End Method");
            return(returnList.ToList());
        }