Ejemplo n.º 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            SystemAuthorization systemAuthorization = db.SystemAuthorizations.Find(id);

            db.SystemAuthorizations.Remove(systemAuthorization);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "SystemAuthorizationID,Add_Edit_Del,AuthorzationName")] SystemAuthorization systemAuthorization)
 {
     if (ModelState.IsValid)
     {
         db.Entry(systemAuthorization).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(systemAuthorization));
 }
Ejemplo n.º 3
0
        public ActionResult Create([Bind(Include = "SystemAuthorizationID,Add_Edit_Del,AuthorzationName")] SystemAuthorization systemAuthorization)
        {
            if (ModelState.IsValid)
            {
                db.SystemAuthorizations.Add(systemAuthorization);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(systemAuthorization));
        }