Beispiel #1
0
 public ActionResult DeleteConfirmed(int id)
 {
     Framework.Framework framework = db.Frameworks.Find(id);
     db.Frameworks.Remove(framework);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
Beispiel #2
0
 public ActionResult Edit([Bind(Include = "IdFramework,Name,Description,Status,Id,IdStandard")] Framework.Framework framework)
 {
     if (ModelState.IsValid)
     {
         db.Entry(framework).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.Id         = new SelectList(db.Users, "Id", "FullName", framework.Id);
     ViewBag.IdStandard = new SelectList(db.Standards, "IdStandard", "Name", framework.IdStandard);
     return(View(framework));
 }
Beispiel #3
0
 // GET: Frameworks/Details/5
 public ActionResult Details(int?id)
 {
     if (id == null)
     {
         return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
     }
     Framework.Framework framework = db.Frameworks.Find(id);
     if (framework == null)
     {
         return(HttpNotFound());
     }
     return(View(framework));
 }
Beispiel #4
0
 // GET: Frameworks/Edit/5
 public ActionResult Edit(int?id)
 {
     if (id == null)
     {
         return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
     }
     Framework.Framework framework = db.Frameworks.Find(id);
     if (framework == null)
     {
         return(HttpNotFound());
     }
     ViewBag.Id         = new SelectList(db.Users, "Id", "FullName", framework.Id);
     ViewBag.IdStandard = new SelectList(db.Standards, "IdStandard", "Name", framework.IdStandard);
     return(View(framework));
 }