public ActionResult Delete(int id) { ToplantiClient tc = new ToplantiClient(); tc.Delete(id); return(RedirectToAction("Index")); }
public ActionResult Edit(ToplantiViewModel tvm) { ToplantiClient tc = new ToplantiClient(); tc.Edit(tvm.toplanti); return(RedirectToAction("Index")); }
public ActionResult Edit(int id) { ToplantiClient tc = new ToplantiClient(); ToplantiViewModel tvm = new ToplantiViewModel(); tvm.toplanti = tc.find(id); return(View("Edit", tvm)); }
public ActionResult Index() { ToplantiClient tc = new ToplantiClient(); ViewBag.listToplanti = tc.findAll(); return(View()); }