public ActionResult Index() { TempData["AVMSayisi"] = _avm.GetAVMs().Count(); TempData["SehirSayisi"] = _sehir.GetSehirler().Count(); TempData["MarkaSayisi"] = _marka.GetMarkas().Count(); return(View()); }
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)); }
public IHttpActionResult GetMarkalar() { var markalar = markaRep.GetMarkas(); return(Ok(markalar)); }