Пример #1
0
        public ActionResult chkboxEmp()
        {
            var emp = Request.Form.Get("cid");

            list = OOPS.getall();
            List <EMPDATA> nlist = new List <EMPDATA>();

            foreach (var e in list)
            {
                if (emp.Contains(e.EMPNO.ToString()))
                {
                    nlist.Add(e);
                }
            }
            return(View(nlist));
        }
Пример #2
0
 //to change particular value , in place of include use exclude
 //[HttpPost]
 //public ActionResult edit([Bind(Include="ENAME,JOB")]EMPDATA E)
 //{
 //    return View();
 //}
 public ActionResult delete(int id)
 {
     OOPS.delEmp(id);
     return(View("Index", OOPS.getall()));
 }
Пример #3
0
 public ActionResult edit(EMPDATA E)
 {
     OOPS.updateEmp(E);
     return(View());
 }
Пример #4
0
 public ActionResult edit(int id)
 {
     return(View(OOPS.GetEmpupdate(id)));
 }
Пример #5
0
 public ActionResult create(EMPDATA E)
 {
     ViewBag.msg = OOPS.insertEmp(E);
     return(View("Index", OOPS.getall()));
 }
Пример #6
0
        // GET: Emp
        public ActionResult Index()
        {
            List <EMPDATA> L = OOPS.getall();

            return(View(L));
        }