Example #1
0
        public ActionResult del()
        {
            int empno = int.Parse(Request.Form["ddlempno"]);

            ViewBag.res = DBoperations.empno_del(empno);
            ViewBag.e   = DBoperations.delemp();

            return(View("deletedata"));
        }
Example #2
0
 public ActionResult deletedata()
 {
     listemp   = DBoperations.delemp();
     ViewBag.e = listemp;
     return(View());
 }