示例#1
0
        public ActionResult DanhSachNhanVien(string searchString, string trangthai, string chucvu, int page = 1, int pageSize = 10)
        {
            if (!string.IsNullOrEmpty(searchString) || !string.IsNullOrEmpty(chucvu))
            {
                return(View(_nhanVienKhoBus.SearchDanhSachNhanVien(searchString, trangthai, chucvu).ToPagedList(page, pageSize)));
            }
            if (!string.IsNullOrEmpty(trangthai))
            {
                return(View(_nhanVienKhoBus.SearchDanhSachNhanVien(searchString, trangthai, chucvu).ToPagedList(page, pageSize)));
            }

            return(View(_nhanVienKhoBus.LoadDanhSachNhanVien().ToPagedList(page, pageSize)));
        }