public ActionResult Index(int sayfa = 1) { int sayfaBoyutu = 5; var musteriListesi = _musteriRepository.GetAll().OrderByDescending(x => x.Id).ToPagedList(sayfa, sayfaBoyutu); return(View(musteriListesi)); }
public ActionResult Ekle() { ViewBag.Musteri = _musteriRepository.GetAll().ToList(); ViewBag.Arac = _aracRepository.GetAll().ToList(); return(View()); }