Ejemplo n.º 1
0
        public int addFeedback(int new_AppUserID, int new_EventID, string new_QuestionOne, string new_QuestionTwo, string new_QuestionThree)
        {
            eventfeedback feedback = new eventfeedback();
            feedback.AppUserID = new_AppUserID;
            feedback.EventID = new_EventID;
            feedback.QuestionOne = new_QuestionOne;
            feedback.QuestionTwo = new_QuestionTwo;
            feedback.QuestionThree = new_QuestionThree;
            feedback.SubmitTime = DateTime.Now;
            feedback.SurveyID = surveymodel.getAttachedSurvey(new_EventID);

            try
            {
                _db.eventfeedbacks.AddObject(feedback);
                _db.SaveChanges();
            }
            catch (Exception e)
            {
            }

            return 0;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the eventfeedbacks EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToeventfeedbacks(eventfeedback eventfeedback)
 {
     base.AddObject("eventfeedbacks", eventfeedback);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Create a new eventfeedback object.
 /// </summary>
 /// <param name="feedbackID">Initial value of the FeedbackID property.</param>
 /// <param name="eventID">Initial value of the EventID property.</param>
 /// <param name="surveyID">Initial value of the SurveyID property.</param>
 public static eventfeedback Createeventfeedback(global::System.Int32 feedbackID, global::System.Int32 eventID, global::System.Int32 surveyID)
 {
     eventfeedback eventfeedback = new eventfeedback();
     eventfeedback.FeedbackID = feedbackID;
     eventfeedback.EventID = eventID;
     eventfeedback.SurveyID = surveyID;
     return eventfeedback;
 }