diff --git a/de-institutions-infrastructure/Features/Institution/Queries/GetAllQuery.cs b/de-institutions-infrastructure/Features/Institution/Queries/GetAllQuery.cs index cd24cce..77ce709 100644 --- a/de-institutions-infrastructure/Features/Institution/Queries/GetAllQuery.cs +++ b/de-institutions-infrastructure/Features/Institution/Queries/GetAllQuery.cs @@ -51,11 +51,11 @@ protected override Result> Handle(GetAllQuery reques { var pagination = _mapper.Map(request).WithTotal(_instituitonContext.Institution.Count()); - var audits = _mapper.ProjectTo(_instituitonContext.Institution.Include(a => a.Address)).OrderBy(a => a.Name) + var schools = _mapper.ProjectTo(_instituitonContext.Institution.Include(a => a.Address)).OrderBy(a => a.Name) .Skip(pagination.PreviousPageNumber * pagination.PageSize) .Take(request.PageSize).ToList(); - var paginationResponse = PagedResult.CreatePaginatedResponse(_uriService, pagination, audits); + var paginationResponse = PagedResult.CreatePaginatedResponse(_uriService, pagination, schools); return Result.Ok(paginationResponse); }