示例#1
0
        public ActionResult Edit(int id)
        {
            var bal   = new EmployeeBAL();
            var model = new EmployeeModel();

            model = bal.DetailByID(id);
            return(View(model));
        }
示例#2
0
        public ActionResult Search(int id)
        {
            if (id != 0)
            {
                var bal   = new EmployeeBAL();
                var model = new EmployeeModel();

                model = bal.DetailByID(id);
                return(View(model));
            }
            else
            {
                return(RedirectToAction("Index", "Employee"));
            }
        }