public JsonResult GetIndex(string pageCount) { StaffDao staffDao = new StaffDao(); List <Staff> list = staffDao.GetListStaff(int.Parse(pageCount)); return(Json(list)); }
public JsonResult SearchStaffById(string staffCode, int pageCountSearch) { StaffDao staffDao = new StaffDao(); List <Staff> list = staffDao.GetListStaff(staffCode, pageCountSearch); return(Json(list)); }
// GET: Staff //[HttpGet] public ActionResult Index() { StaffDao staffDao = new StaffDao(); List <Staff> list = staffDao.GetListStaff(0); ViewData["Staffs"] = list; return(View()); }