public ActionResult Edit(string id)
        {
            Project_B_FinalEntities db = new Project_B_FinalEntities();
            ScoreHK1 hK1 = db.ScoreHK1.Where(x => x.StudentID == id).FirstOrDefault();

            return(View(hK1));
        }
 public ActionResult Edit(ScoreHK1 scoreHK1)
 {
     if (ModelState.IsValid)
     {
         Project_B_FinalEntities db = new Project_B_FinalEntities();
         db.Entry(scoreHK1).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Score"));
     }
     return(View(scoreHK1));
 }