コード例 #1
0
ファイル: TalkController.cs プロジェクト: robzelt/CodeTalk
 public ActionResult Insert(Talk newTalk)
 {
     var talkService = new TalkService();
     talkService.AddTalk(newTalk);
     return RedirectToAction("Index");
 }
コード例 #2
0
ファイル: HomeController.cs プロジェクト: robzelt/CodeTalk
 public ActionResult SubmitTalk(Talk talk)
 {
     var talkService = new TalkService();
     talkService.AddTalk(talk);
     return RedirectToAction("Index");
 }