Ejemplo n.º 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            Hanacaraka hanacaraka = db.Hanacaraka.Find(id);

            db.Hanacaraka.Remove(hanacaraka);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "HanacarakaId,Aksara,GambarURL,KategoriId")] Hanacaraka hanacaraka)
 {
     if (ModelState.IsValid)
     {
         db.Entry(hanacaraka).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.KategoriId = new SelectList(db.Kategori, "KategoriId", "Jenis", hanacaraka.KategoriId);
     return(View(hanacaraka));
 }
Ejemplo n.º 3
0
        // GET: /Hanacaraka/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Hanacaraka hanacaraka = db.Hanacaraka.Find(id);

            if (hanacaraka == null)
            {
                return(HttpNotFound());
            }
            return(View(hanacaraka));
        }
Ejemplo n.º 4
0
        // GET: /Hanacaraka/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Hanacaraka hanacaraka = db.Hanacaraka.Find(id);

            if (hanacaraka == null)
            {
                return(HttpNotFound());
            }
            ViewBag.KategoriId = new SelectList(db.Kategori, "KategoriId", "Jenis", hanacaraka.KategoriId);
            return(View(hanacaraka));
        }