correjido posible desreferenciacion nula

This commit is contained in:
2025-07-25 23:20:09 -03:00
parent b7b7b80072
commit 98414a5ec7
2 changed files with 3 additions and 3 deletions

View File

@@ -21,9 +21,9 @@ public class RepositorioLogs: RepositorioBase<RepositorioLogs> {
return d.LogDetalles.OrderBy(x=>x.Id);
}
public IQueryable<Log>? ObtenerLogsPaginado(int pag) {
public IQueryable<Log> ObtenerLogsPaginado(int pag) {
var con = Context;
var l = con.Logs.OrderByDescending(x=>x.Fecha).Skip(10*pag).Take(10);
return l;
}
}
}