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")); }
public ActionResult Detay(int id, BolumModel model) { Bolum bolum = manager.Bul(id); model.Bolum = bolum; return(View(model)); }
public ActionResult Guncelle(int id) { BolumModel model = new BolumModel(); model.Bolum = manager.Bul(id); return(View(model)); }
public ActionResult Bolum() { BolumModel model = new BolumModel(); model.list = manager.Liste(); return(View(model)); }
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")); }
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; }