Exemplo n.º 1
0
        public ActionResult Guncelle(int id)
        {
            DepartmanModel dmodel = new DepartmanModel();

            dmodel.Departman = dm.Bul(id);
            return(View(dmodel));
        }
Exemplo n.º 2
0
        public ActionResult Index()
        {
            DepartmanModel model = new DepartmanModel();

            model.dlist = dm.DepartmanListele();
            return(View(model));
        }
Exemplo n.º 3
0
        public ActionResult Guncelle(DepartmanModel dmodel, int id)
        {
            Departman departman = dm.Bul(id);

            departman.DepartmanAd = dmodel.Departman.DepartmanAd;
            dm.Guncelle(departman);
            dm.Save();
            return(RedirectToAction("Index"));
        }
Exemplo n.º 4
0
        public ActionResult Ekle(DepartmanModel dmodel)
        {
            Departman departman = new Departman();

            departman.DepartmanAd = dmodel.Departman.DepartmanAd;
            dm.Ekle(departman);
            dm.Save();
            return(RedirectToAction("Index"));
        }