Beispiel #1
0
 // FAQ
 public void createFAQ(string question, string answer)
 {
     FAQ f = new FAQ();
     f.answer = answer;
     f.question = question;
     db.FAQs.Add(f);
     db.SaveChanges();
 }
Beispiel #2
0
 public void editFAQ(FAQ faq, string question, string answer)
 {
     faq.question = question;
     faq.answer = answer;
     db.SaveChanges();
 }
Beispiel #3
0
 public void deleteFAQ(FAQ faq)
 {
     db.FAQs.Remove(faq);
     db.SaveChanges();
 }