Exemple #1
0
        public ActionResult DeleteConfirmed(long id)
        {
            MasterAcuanUpdateting masterAcuanUpdateting = db.AcuanUpdateting.Find(id);

            db.AcuanUpdateting.Remove(masterAcuanUpdateting);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemple #2
0
 public ActionResult Edit([Bind(Include = "Id,Nama,Status")] MasterAcuanUpdateting masterAcuanUpdateting)
 {
     if (ModelState.IsValid)
     {
         db.Entry(masterAcuanUpdateting).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(masterAcuanUpdateting));
 }
Exemple #3
0
        public ActionResult Create([Bind(Include = "Id,Nama,Status")] MasterAcuanUpdateting masterAcuanUpdateting)
        {
            masterAcuanUpdateting.Status = "1";
            if (ModelState.IsValid)
            {
                db.AcuanUpdateting.Add(masterAcuanUpdateting);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(masterAcuanUpdateting));
        }
Exemple #4
0
        // GET: MasterAcuanUpdatetings/Edit/5
        public ActionResult Edit(long?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            MasterAcuanUpdateting masterAcuanUpdateting = db.AcuanUpdateting.Find(id);

            if (masterAcuanUpdateting == null)
            {
                return(HttpNotFound());
            }
            return(View(masterAcuanUpdateting));
        }