コード例 #1
0
 public bool AddFeedbackQuestionDetail(FeedbackQuestionDetail org)
 {
     try
     {
         entities.FeedbackQuestionDetails.Add(org);
         entities.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
コード例 #2
0
 public bool DeleteFeedbackQuestionDetail(int mCustID)
 {
     try
     {
         FeedbackQuestionDetail data = entities.FeedbackQuestionDetails.Where(m => m.FeedbackQuestionDetailID == mCustID).FirstOrDefault();
         entities.FeedbackQuestionDetails.Remove(data);
         entities.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
コード例 #3
0
        public bool UpdateFeedbackQuestionDetail(FeedbackQuestionDetail org)
        {
            try
            {
                FeedbackQuestionDetail data = entities.FeedbackQuestionDetails.Where(m => m.FeedbackQuestionDetailID == org.FeedbackQuestionDetailID).FirstOrDefault();

                data.FeedbackID   = org.FeedbackID;
                data.QuestionerID = org.QuestionerID;
                data.PICID        = org.PICID;



                entities.SaveChanges();
                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }