public ActionResult Edit(int id)
        {
            StudentEntities obj = new StudentEntities();
            tbldisplay      dis = obj.tbldisplays.Single(x => x.Id == id);

            return(View(dis));
        }
        public ActionResult Edit(tbldisplay disp)
        {
            if (ModelState.IsValid)
            {
                StudentEntities obj = new StudentEntities();
                tbldisplay      dis = obj.tbldisplays.Single(x => x.Id == disp.Id);

                dis.PersonalWebSite = disp.PersonalWebSite;
                dis.Salary          = disp.Salary;
                dis.HireDate        = disp.HireDate;
                dis.FullName        = disp.FullName;
                dis.Gender          = disp.Gender;
                dis.Age             = disp.Age;

                obj.SaveChanges();

                return(RedirectToAction("display1", new { id = dis.Id }));
            }
            return(View());
        }