Skip to content

Commit

Permalink
Edit PageCount in BSN-Commons-AutoMapper (#91)
Browse files Browse the repository at this point in the history
* Initial Commit.

* resolve comment

* remove comment

* it was refer to reza for  to resolved it

* edit readme.

* edit readme

* Remove some shet.

* Sheit

* Update Changelog.

* Update changelog.

* Update Readme.md.

* Update Readme.Md.

* Resolve some issue.

* chnage name AddAutoMapper to AddCommonsAutoMapper

* edit page count in automapper

---------

Co-authored-by: Reza Noei <[email protected]>
Co-authored-by: mostafa fbh <[email protected]>
  • Loading branch information
3 people authored Sep 30, 2024
1 parent 4d836d7 commit 9d9e7c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/BSN.Commons.AutoMapper/CommonsMappingProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public PaginationMetadata Convert(PagedEntityCollection<TDomain> source, Paginat
return new PaginationMetadata()
{
Page = source.CurrentPage,
PageCount = source.PageSize,
PageCount = source.PageCount,
PageSize = source.PageSize,
RecordCount = source.RecordCount
};
Expand Down

0 comments on commit 9d9e7c1

Please sign in to comment.