public ActionResult DeleteConfirmed(int id) { HonoursState honoursstate = (HonoursState)db.GPAStates.Find(id); db.GPAStates.Remove(honoursstate); db.SaveChanges(); return(RedirectToAction("Index")); }
// // GET: /HonoursState/Delete/5 public ActionResult Delete(int id = 0) { HonoursState honoursstate = (HonoursState)db.GPAStates.Find(id); if (honoursstate == null) { return(HttpNotFound()); } return(View(honoursstate)); }
public ActionResult Edit(HonoursState honoursstate) { if (ModelState.IsValid) { db.Entry(honoursstate).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(honoursstate)); }
// // GET: /HonoursState/Edit/5 public ActionResult Edit(int id = 0) { HonoursState honoursstate = db.HonoursStates.Find(id); if (honoursstate == null) { return(HttpNotFound()); } return(View(honoursstate)); }
public ActionResult Edit([Bind(Include = "GradePointStateId,LowerLimit,UpperLimit,TuitionRateFactor")] HonoursState honoursState) { if (ModelState.IsValid) { db.Entry(honoursState).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(honoursState)); }
public ActionResult Create(HonoursState honoursstate) { if (ModelState.IsValid) { db.GPAStates.Add(honoursstate); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(honoursstate)); }
public ActionResult Create([Bind(Include = "GradePointStateId,LowerLimit,UpperLimit,TuitionRateFactor")] HonoursState honoursState) { if (ModelState.IsValid) { db.HonoursStates.Add(honoursState); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(honoursState)); }
// GET: HonoursStates/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } HonoursState honoursState = db.HonoursStates.Find(id); if (honoursState == null) { return(HttpNotFound()); } return(View(honoursState)); }
// // GET: /HonoursState/ public ActionResult Index() { return(View(HonoursState.getInstance())); }
// GET: HonoursStates public ActionResult Index() { //return View(db.HonoursStates.ToList()); return(View(HonoursState.getInstance())); }