public ActionResult DeleteConfirmed(int id)
        {
            AwardsTable awardsTable = db.AwardsTables.Find(id);

            db.AwardsTables.Remove(awardsTable);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "awardID,awardName,awardDescription,awardLimit,creditsRequired")] AwardsTable awardsTable)
 {
     if (ModelState.IsValid)
     {
         db.Entry(awardsTable).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(awardsTable));
 }
        public ActionResult Create([Bind(Include = "awardID,awardName,awardDescription,awardLimit,creditsRequired")] AwardsTable awardsTable)
        {
            if (ModelState.IsValid)
            {
                db.AwardsTables.Add(awardsTable);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(awardsTable));
        }
        // GET: AwardsTables/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            AwardsTable awardsTable = db.AwardsTables.Find(id);

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