public ActionResult Del_post(int id)
        {
            StudMst stud = dc.GetTable <StudMst>().Single(x => x.id == Convert.ToInt32(id));

            dc.GetTable <StudMst>().DeleteOnSubmit(stud);
            dc.SubmitChanges();
            return(View());
        }
        public ActionResult Edit_post(int id)
        {
            StudMst stud = dc.GetTable <StudMst>().Single(x => x.id == Convert.ToInt32(id));

            UpdateModel(stud);
            dc.SubmitChanges();
            return(View());
        }
        public ActionResult Del_get(int?id)
        {
            StudMst stud = dc.GetTable <StudMst>().Single(x => x.id == Convert.ToInt32(id));

            return(View(stud));
        }
 public ActionResult Create(StudMst obj)
 {
     dc.GetTable <StudMst>().InsertOnSubmit(obj);
     dc.SubmitChanges();
     return(View());
 }