예제 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            HonoursState honoursstate = (HonoursState)db.GPAStates.Find(id);

            db.GPAStates.Remove(honoursstate);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
예제 #2
0
        //
        // 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));
        }
예제 #3
0
 public ActionResult Edit(HonoursState honoursstate)
 {
     if (ModelState.IsValid)
     {
         db.Entry(honoursstate).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(honoursstate));
 }
예제 #4
0
        //
        // GET: /HonoursState/Edit/5

        public ActionResult Edit(int id = 0)
        {
            HonoursState honoursstate = db.HonoursStates.Find(id);

            if (honoursstate == null)
            {
                return(HttpNotFound());
            }
            return(View(honoursstate));
        }
예제 #5
0
 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));
 }
예제 #6
0
        public ActionResult Create(HonoursState honoursstate)
        {
            if (ModelState.IsValid)
            {
                db.GPAStates.Add(honoursstate);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(honoursstate));
        }
예제 #7
0
        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));
        }
예제 #8
0
        // 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));
        }
예제 #9
0
        //
        // GET: /HonoursState/

        public ActionResult Index()
        {
            return(View(HonoursState.getInstance()));
        }
예제 #10
0
 // GET: HonoursStates
 public ActionResult Index()
 {
     //return View(db.HonoursStates.ToList());
     return(View(HonoursState.getInstance()));
 }