Beispiel #1
0
        public ActionResult NovelGuncelle(Novel novel)
        {
            ViewBag.CategoryList = StatikVeritaban.KategoriListele;

            StatikVeritaban.NovelGuncelle(novel);
            return(RedirectToAction("index"));
        }
Beispiel #2
0
        public ActionResult NovelGuncelle(int id)
        {
            Novel novel = StatikVeritaban.DetayNovel(id);

            ViewBag.CategoryList = StatikVeritaban.KategoriListele;
            return(View(novel));
        }
Beispiel #3
0
        public ActionResult NovelSil(int id)
        {
            ViewBag.CategoryList = StatikVeritaban.KategoriListele;

            StatikVeritaban.NovelSil(id);
            return(RedirectToAction("Index"));
        }
Beispiel #4
0
        public ActionResult KategoriEkle(Category category)
        {
            ViewBag.CategoryList = StatikVeritaban.KategoriListele;

            StatikVeritaban.KategoriEkle(category);
            return(RedirectToAction("KategoriIndex"));
        }
Beispiel #5
0
        public ActionResult KategoriDetay(int id)
        {
            ViewBag.CategoryList = StatikVeritaban.KategoriListele;
            ViewBag.katid        = StatikVeritaban.KategoriBul(id);
            List <Novel> m = StatikVeritaban.KategoriDetay(id);

            return(View(m));
        }
Beispiel #6
0
        public ActionResult YorumSil(int id)
        {
            int novelid = 0;

            ViewBag.CategoryList = StatikVeritaban.KategoriListele;
            novelid = StatikVeritaban.YorumlaBul(id);
            StatikVeritaban.YorumSil(id);
            return(RedirectToAction("DetayNovel", new { id = novelid }));
        }
Beispiel #7
0
 public ActionResult YorumEkle(Comment comment)
 {
     StatikVeritaban.YorumEkle(comment);
     return(RedirectToAction("DetayNovel", new { id = comment.Novelid }));
 }
Beispiel #8
0
        public ActionResult Yorum(int id)
        {
            Novel novel = StatikVeritaban.DetayNovel(id);

            return(PartialView(novel));
        }