public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Todo todo = todoManager.Find(x => x.Id == id); if (todo == null) { return(HttpNotFound()); } ViewBag.projeId = new SelectList(CacheHelper.GetProjectFromCache(), "Id", "projeAd", todo.projeId); ViewBag.todoKullanicisi = new SelectList(kullaniciManager.List(), "Id", "kullaniciadi", todo.todoKullanicisi); return(View(todo)); }
public ActionResult Index() { return(View(km.List())); }
// GET: Home public ActionResult Index(int?id) { model.araba = am.List().OrderByDescending(x => x.EklenmeTarihi).ToList(); model.kullanici = k.List().OrderByDescending(x => x.KayitTarih).ToList(); return(View(model)); }