コード例 #1
0
 public ActionResult GiveAnswer(Post answerPost)
 {
     answerPost.Date = DateTime.Now;
     respository.CreateAnswer(answerPost, User.Identity.GetUserId());
     return(RedirectToAction("Index", new { id = answerPost.AnswerFor }));
 }