Esempio n. 1
0
 public ActionResult SendDhammaQ(DhammaQA dhammaQA)
 {
     if (ModelState.IsValid)
     {
         repository5.SaveDhammaQA(dhammaQA);
         return(RedirectToAction("DhammaQA"));
     }
     else
     {
         // there is something wrong with the data values
         return(View(dhammaQA));
     }
 }
Esempio n. 2
0
 public ActionResult ReplyDhammaQuestion(DhammaQA dhammaQA)
 {
     if (ModelState.IsValid)
     {
         dhammaQARepo.SaveDhammaQA(dhammaQA);
         return(RedirectToAction("DhammaQAManaging"));
     }
     else
     {
         // there is something wrong with the data values
         return(View(dhammaQA));
     }
 }