public ActionResult Slider() { ViewBag.Slider = slideroperation.GetAllSlider(); return(PartialView()); //TODO:Slider dönmüyor bi ara bak buraya }
public ActionResult Slider() { if (Session["Login"] != null) { gelen = (AppUsers)Session["Login"]; } else { return(RedirectToAction("Index", "Home", new { area = "" })); } if (gelen.Status.Value == 3) { var allSlider = sliderManagement.GetAllSlider(); return(View(allSlider)); } else { return(RedirectToAction("Index", "Admin")); } }