Configure Web-Grpc and CORS

This commit is contained in:
2025-05-03 13:39:27 -04:00
parent 0239186a13
commit 9a4ea438f8
3 changed files with 20 additions and 4 deletions

View File

@@ -19,14 +19,16 @@ public static class ProtoExtensions
public static Pagination ToPagination<T>(this PagedResult<T> result)
{
return new Pagination()
var p =new Pagination()
{
Page = result.Page,
PageSize = result.PageSize,
TotalItems = result.TotalItems,
TotalPages = result.TotalPages,
Query = result.Query,
};
if(result.Query != null)
p.Query = result.Query;
return p;
}
public static MediaResponse ToResponse(this Media? media)