cambios para añadir proveedores en form de productos + proveedores y resuelto un bug en form proveedores
This commit is contained in:
@@ -38,6 +38,13 @@ namespace Controladora
|
||||
return RepositorioProductos.Instance.Listar();
|
||||
}
|
||||
|
||||
public ReadOnlyCollection<Proveedor> ListarProveedores(Producto producto)
|
||||
{
|
||||
Producto productoalistar = RepositorioProductos.Instance.Listar().First(x => x.Id == producto.Id);
|
||||
if (productoalistar == null) return new ReadOnlyCollection<Proveedor>(new List<Proveedor>());
|
||||
return productoalistar.ListarProveedores();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user