estoy cansado hay que hacer el tema de las categorias y las controladoras de productospercederos y no percederos
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Entidades;
|
||||
using System.Runtime.Intrinsics.Arm;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
@@ -19,7 +20,14 @@ namespace Modelo
|
||||
Lote lot = context.Lotes.First(x => x.Id == Tid);
|
||||
return lot ?? new Lote();
|
||||
}
|
||||
|
||||
public void Add(Remito rem)
|
||||
{
|
||||
if (rem.MostrarLotes().Count <= 0) return;
|
||||
foreach (var detalle in rem.MostrarLotes())
|
||||
{
|
||||
Add(detalle);
|
||||
}
|
||||
}
|
||||
public override void Add(Lote t)
|
||||
{
|
||||
context.Lotes.Add(t);
|
||||
|
||||
Reference in New Issue
Block a user