Example #1
0
 public Guid?Poll_Header_Save(Answers_Header Model)
 {
     return(this.DbConnection.Answers_Header_F_Save(Model.AnswerHeaderId
                                                    , Model.UserId
                                                    , Model.IpAddress
                                                    , Model.TimeZoneId
                                                    , Model.IsDstTime).FirstOrDefault());
 }
Example #2
0
        public void Poll_Responses_Save(Answers_Header Model)
        {
            Guid?HeaderId = this.DbConnection.Answers_Header_F_Save(Model.AnswerHeaderId
                                                                    , Model.UserId
                                                                    , Model.IpAddress
                                                                    , Model.TimeZoneId
                                                                    , Model.IsDstTime).FirstOrDefault();

            if (HeaderId.HasValue && !Guid.Equals(HeaderId.Value, Guid.Empty))
            {
                foreach (Question_Answer_Response response in Model.Responces)
                {
                    response.AnswerHeaderId = HeaderId.Value;
                    this.DbConnection.Answers_f_Save(response.AnswerHeaderId
                                                     , response.QuestionId
                                                     , response.AnswerId);
                }
            }
        }