예제 #1
0
        public bool SaveDemographicResult(int userid, int poeid, int QuestionId, int feedbackid, string answer)
        {
            try
            {
                FeedbackBL feedbackBl = new FeedbackBL();
                feedbackBl.InsertUpdateUserDemographic(userid, poeid, QuestionId, feedbackid, answer);


                return(true);
            }
            catch (Exception e)
            {
                WebOperationContext.Current.OutgoingResponse.StatusCode        = HttpStatusCode.PreconditionFailed;
                WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message;
                BusinessLogic.Common.Common common = new BusinessLogic.Common.Common();
                common.CreateErrorLog(userid, "SaveDemographicResult", e.Message, 0);
            }
            return(true);
        }