public ActionResult DeleteConfirmed(int id)
        {
            Student_Table1 student_Table1 = db.Student_Table1.Find(id);

            db.Student_Table1.Remove(student_Table1);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID,First_Name,Last_Name,Class,Subject,Marks")] Student_Table1 student_Table1)
 {
     if (ModelState.IsValid)
     {
         db.Entry(student_Table1).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(student_Table1));
 }
        public ActionResult Create([Bind(Include = "ID,First_Name,Last_Name,Class,Subject,Marks")] Student_Table1 student_Table1)
        {
            if (ModelState.IsValid)
            {
                db.Student_Table1.Add(student_Table1);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(student_Table1));
        }
        // GET: Student_Table1/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Student_Table1 student_Table1 = db.Student_Table1.Find(id);

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