Example #1
0
        public IActionResult CreateNewAnswer(Guid?uid, Guid?qid, string qtext)
        {
            _service.CreateNewAnswer(uid, qid, qtext);

            return(RedirectToAction("Index", "Questions"));
        }
 public ActionResult CreateNewAnswer(Guid uid, Guid qid, string qtext, string noPage)
 {
     _service.CreateNewAnswer(uid, qid, qtext);
     return(RedirectToAction("QuestionsPaginated", "Questions", new { NoPage = noPage }));
 }