public async Task <IActionResult> Giris(BolumModel model)
        {
            _repBolum.Entry(model.bolum);
            await _repBolum.Comit();

            return(RedirectToAction("Liste"));
        }
        public async Task <IActionResult> Sil(BolumModel model)
        {
            _repBolum.Delete(model.bolum);
            await _repBolum.Comit();

            return(RedirectToAction("Liste"));
        }
Ejemplo n.º 3
0
        public ActionResult Detay(int id, BolumModel model)
        {
            Bolum bolum = manager.Bul(id);

            model.Bolum = bolum;
            return(View(model));
        }
Ejemplo n.º 4
0
        public ActionResult Guncelle(int id)
        {
            BolumModel model = new BolumModel();

            model.Bolum = manager.Bul(id);
            return(View(model));
        }
Ejemplo n.º 5
0
        public ActionResult Bolum()
        {
            BolumModel model = new BolumModel();

            model.list = manager.Liste();
            return(View(model));
        }
Ejemplo n.º 6
0
        public ActionResult Guncelle(int id, BolumModel model)
        {
            Bolum bolum = manager.Bul(id);

            bolum.Ad = model.bolum.Ad;
            manager.Guncelle(bolum);
            manager.Save();
            return(RedirectToAction("Bolum"));
        }
Ejemplo n.º 7
0
        public ActionResult Ekle(BolumModel model)
        {
            Bolum bolum = new Bolum();

            bolum.Ad = model.bolum.Ad;
            manager.Ekle(bolum);
            manager.Save();
            return(RedirectToAction("Bolum"));
        }
 public BolumController(RepBolum repBolum, BolumModel model)
 {
     _repBolum = repBolum;
     _model    = model;
 }