public ActionResult AddSubject(PostData subject) { var id = 1; var new_subject = new SubjectData() { Title = "Primul subiect", Text = "blablabla" }; _forum.AddSubject(new_subject, id, 1); return(RedirectToAction("Index", "Topic")); }
public ActionResult AddSubject(PostData subject) { var id = 1; var new_subject = new SubjectData() { Title = "Primul subiect", Text = "blablabla" }; _forum.AddSubject(new_subject, id, 1); return(RedirectToAction("Index", "Topic")); }