Pequeño refactor

This commit is contained in:
fedpo
2024-12-02 16:17:16 +00:00
parent 61d8cf3723
commit 2cb2fe1401
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ namespace Controladora
if (producto == null) return 0;
if (producto.Id < 0) return 0;
var lotes = repositorioLotes.Listar();
if (!lotes.Any(x => x.Producto.Id == producto.Id)) return 0; // basicamente no hay productos con esa id
if (!lotes.Any(x => x.Producto.Id == producto.Id)) return 0;
var CantidadStock = lotes
.Where(x => x.Producto.Id == producto.Id)