示例#1
0
        public ActionResult Delete(int id)
        {
            ToplantiClient tc = new ToplantiClient();

            tc.Delete(id);
            return(RedirectToAction("Index"));
        }
示例#2
0
        public ActionResult Edit(ToplantiViewModel tvm)
        {
            ToplantiClient tc = new ToplantiClient();

            tc.Edit(tvm.toplanti);
            return(RedirectToAction("Index"));
        }
示例#3
0
        public ActionResult Edit(int id)
        {
            ToplantiClient    tc  = new ToplantiClient();
            ToplantiViewModel tvm = new ToplantiViewModel();

            tvm.toplanti = tc.find(id);
            return(View("Edit", tvm));
        }
示例#4
0
        public ActionResult Index()
        {
            ToplantiClient tc = new ToplantiClient();

            ViewBag.listToplanti = tc.findAll();

            return(View());
        }