public ActionResult Edit([Bind(Include = "DeciplineID,DeciplineName")] Decipline decipline) { if (ModelState.IsValid) { db.Entry(decipline).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(decipline)); }
public ActionResult Edit([Bind(Include = "QuotaID,QuotaName")] Quota quota) { if (ModelState.IsValid) { db.Entry(quota).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View()); }
public ActionResult Edit([Bind(Include = "adminid,adminusername,adminpassword")] Admin admin) { if (ModelState.IsValid) { db.Entry(admin).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(admin)); }