public KawruhBasa Find(int id) { KawruhBasa result = (from b in kawruhBasaa where b.KawruhBasaId == id select b).FirstOrDefault <KawruhBasa>(); return(result); }
public ActionResult DeleteConfirmed(int id) { KawruhBasa kawruhbasa = db.KawruhBasa.Find(id); db.KawruhBasa.Remove(kawruhbasa); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "KawruhBasaId,Tembung,PodhoTegese,KosokBalen,KategoriId")] KawruhBasa kawruhbasa) { if (ModelState.IsValid) { db.Entry(kawruhbasa).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.KategoriId = new SelectList(db.Kategori, "KategoriId", "Jenis", kawruhbasa.KategoriId); return(View(kawruhbasa)); }
// GET: /KawruhBasa/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } KawruhBasa kawruhbasa = db.KawruhBasa.Find(id); if (kawruhbasa == null) { return(HttpNotFound()); } return(View(kawruhbasa)); }
// GET: /KawruhBasa/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } KawruhBasa kawruhbasa = db.KawruhBasa.Find(id); if (kawruhbasa == null) { return(HttpNotFound()); } ViewBag.KategoriId = new SelectList(db.Kategori, "KategoriId", "Jenis", kawruhbasa.KategoriId); return(View(kawruhbasa)); }