Esempio n. 1
0
        public JsonResult GetIndex(string pageCount)
        {
            StaffDao     staffDao = new StaffDao();
            List <Staff> list     = staffDao.GetListStaff(int.Parse(pageCount));

            return(Json(list));
        }
Esempio n. 2
0
        public JsonResult SearchStaffById(string staffCode, int pageCountSearch)
        {
            StaffDao     staffDao = new StaffDao();
            List <Staff> list     = staffDao.GetListStaff(staffCode, pageCountSearch);

            return(Json(list));
        }
Esempio n. 3
0
        // GET: Staff
        //[HttpGet]
        public ActionResult Index()
        {
            StaffDao     staffDao = new StaffDao();
            List <Staff> list     = staffDao.GetListStaff(0);

            ViewData["Staffs"] = list;
            return(View());
        }