Beispiel #1
0
 public ActionResult Index()
 {
     TempData["AVMSayisi"]   = _avm.GetAVMs().Count();
     TempData["SehirSayisi"] = _sehir.GetSehirler().Count();
     TempData["MarkaSayisi"] = _marka.GetMarkas().Count();
     return(View());
 }
Beispiel #2
0
        public ActionResult DetailsAVM(int id)
        {
            var avm   = _avm.GetAVM(id);
            var marka = _marka.GetMarkas().Where(i => i.AVMId == id).ToList();

            TempData["marka"] = marka;
            return(View(avm));
        }
Beispiel #3
0
        public IHttpActionResult GetMarkalar()
        {
            var markalar = markaRep.GetMarkas();

            return(Ok(markalar));
        }