Beispiel #1
0
        public async Task <ActionResult> DeleteConfirmed(int id)
        {
            akses akses = await db.aksess.FindAsync(id);

            db.aksess.Remove(akses);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
Beispiel #2
0
        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));
        }
Beispiel #3
0
        // 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));
        }