public ActionResult del() { int empno = int.Parse(Request.Form["ddlempno"]); ViewBag.res = DBoperations.empno_del(empno); ViewBag.e = DBoperations.delemp(); return(View("deletedata")); }
public ActionResult deletedata() { listemp = DBoperations.delemp(); ViewBag.e = listemp; return(View()); }