public ActionResult Update(int posting_code) { ViewBag.Subjects = new SubjectApp().listAll(); Posting posting = new PostingApp().listByCode(posting_code); return(View(posting)); }
public ActionResult Informations() { var informations = new PostingApp().informations(); ViewBag.views = informations[0]; ViewBag.postings = informations[1]; return(View()); }
// GET: Post public ActionResult Index() { var allPostings = new PostingApp().listAll(); return(View(allPostings)); }