public async Task <IActionResult> Index(int pageIndex = 1, int pageSize = 10) { var page = await leaveService.GetPageAsync(pageIndex, pageSize, UserIdentity.UserId); return(View(page)); }
public async Task <Page <OaLeaveDto> > GetPageAsync(int pageIndex, int pageSize, long userid) { return(await leaveService.GetPageAsync(pageIndex, pageSize, userid)); }