public bool AddFeedbackQuestionDetail(FeedbackQuestionDetail org) { try { entities.FeedbackQuestionDetails.Add(org); entities.SaveChanges(); return(true); } catch (Exception) { return(false); } }
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); } }
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); } }