public IActionResult Guncelle(KursDers model) { model.GuncellemeTarihi = DateTime.Now; service.KursDers.Update(model); service.SaveChanges(); return(RedirectToAction(nameof(Listele))); }
public IActionResult Ekle(KursDers model) { model.KayitTarihi = DateTime.Now; model.SilindiMi = false; service.KursDers.Add(model); service.SaveChanges(); return(RedirectToAction(nameof(Ekle))); }
public ResultMessage <KursDers> Update(KursDers data) { return(repository.Update(data)); }
public ResultMessage <KursDers> Add(KursDers data) { return(repository.Add(data)); }