Inheritance: INotifyPropertyChanging, INotifyPropertyChanged
        public void Log(string dolurl, string question, string suggestion, string posttype)
        {
            base.Response.AddHeader("Access-Control-Allow-Origin", "*");
            base.Response.AddHeader("Access-Control-Allow-Methods", "POST,OPTIONS");
            base.Response.AddHeader("Access-Control-Allow-Headers", "Content-Type");
            base.Response.AddHeader("Access-Control-Allow-Credentials", "false");
            base.Response.AddHeader("Access-Control-Max-Age", "60");
            try
            {

                if ((((((base.Request.QueryString.AllKeys.Contains<string>("dolurl") & base.Request.QueryString.AllKeys.Contains<string>("question")) & base.Request.QueryString.AllKeys.Contains<string>("posttype")) && (dolurl.Trim() != "")) && ((question.ToUpper() == "YES") || (question.ToUpper() == "NO"))) && (!(posttype.ToUpper() != "C") || !(posttype.ToUpper() != "Q"))) && (((dolurl != null) && (question != null)) && (suggestion != null)))
                {
                    bool flag = false;
                    string agencyCode = this.GetAgencyCode(dolurl);
                    if (question.ToUpper() == "YES")
                    {
                        flag = true;
                    }
                    if (posttype.ToUpper() == "Q")
                    {
                        Response entity = new Response
                        {
                            Url = dolurl,
                            Positive = new bool?(flag),
                            UtcDate = DateTime.Now,
                            Agency = agencyCode
                        };
                        tdc.Responses.InsertOnSubmit(entity);
                        tdc.SubmitChanges();
                    }
                    else if (posttype.ToUpper() == "C")
                    {
                        Comment comment = new Comment
                        {
                            Url = dolurl,
                            Positive = new bool?(flag),
                            Comment1 = suggestion,
                            UtcDate = DateTime.Now,
                            Agency = agencyCode
                        };
                        tdc.Comments.InsertOnSubmit(comment);
                        tdc.SubmitChanges();
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 partial void DeleteComment(Comment instance);
 partial void UpdateComment(Comment instance);
 partial void InsertComment(Comment instance);
 partial void DeleteComment(Comment instance);
 partial void UpdateComment(Comment instance);
 partial void InsertComment(Comment instance);