public async Task <ActionResult> DeleteConfirmed(int id) { akses akses = await db.aksess.FindAsync(id); db.aksess.Remove(akses); await db.SaveChangesAsync(); return(RedirectToAction("Index")); }
public async Task <ActionResult> Edit([Bind(Include = "aksesId,aksesdescription")] akses akses) { if (ModelState.IsValid) { db.Entry(akses).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(akses)); }
// GET: /Administration/akses/Details/5 public async Task <ActionResult> Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } akses akses = await db.aksess.FindAsync(id); if (akses == null) { return(HttpNotFound()); } return(View(akses)); }