Skip to content

Commit

Permalink
[Complete]Fix Total Count Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nyeinchannmoe committed Aug 11, 2024
1 parent 92fd037 commit e7ddbec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions REMS.Modules/Features/Appointment/DA_Appointment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@ join _age in _db.Agents on _pro.AgentId equals _age.AgentId
Size = _pro.Size,
NumberOfBedrooms = _pro.NumberOfBedrooms,
NumberOfBathrooms = _pro.NumberOfBathrooms,
})
}).ToListAsync();
var appointmentList = query
.Skip((pageNo - 1) * pageSize)
.Take(pageSize)
.ToListAsync();
if (query is null || query.Count == 0)
.Take(pageSize).ToList();
if (appointmentList is null || appointmentList.Count == 0)
{
return Result<AppointmentDetailList>.Error("No Data Found.");
}
Expand Down

1 comment on commit e7ddbec

@nyeinchannmoe
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Complete]Fix Total Count Issue

Please sign in to comment.