Exemple #1
0
        public ActionResult Details(string code)
        {
            StaffDao staffDao = new StaffDao();

            Staff list = staffDao.Getstaff(code);

            ViewData["Staffs"] = list;
            return(View());
        }
Exemple #2
0
        // GET: Staff/Edit/5
        public ActionResult Edit(string code)
        {
            StaffDao staffDao = new StaffDao();
            Staff    staff    = staffDao.Getstaff(code);

            ViewData["Staff"] = staff;


            return(View(staff));
        }