// Blog // public ActionResult MakaleList() { Session["SayfaAdi"] = "MakaleListesi"; AdminWebServis.WebService Veri = new AdminWebServis.WebService(); return(View(Veri.MakaleList())); }
public ActionResult MakaleDetails(int MakaleID) { Session["SayfaAdi"] = "MakaleDetay"; AdminWebServis.WebService Veri = new AdminWebServis.WebService(); var MakaleList = Veri.MakaleList(); var sonuc = MakaleList.Where(x => x.MakaleID == MakaleID).FirstOrDefault(); return(View(sonuc)); }
public ActionResult MakaleListJson() { AdminWebServis.WebService Veri = new AdminWebServis.WebService(); return(Json(Veri.MakaleList(), JsonRequestBehavior.AllowGet)); }