oh hell no
This commit is contained in:
@@ -26,15 +26,19 @@ namespace Modelo
|
||||
}
|
||||
public void Add(Remito rem)
|
||||
{
|
||||
if (rem.Lotes.Count <= 0) return;
|
||||
foreach (var detalle in rem.Lotes)
|
||||
{
|
||||
detalle.IdRemito = rem.Id;
|
||||
Add(detalle);
|
||||
}
|
||||
}
|
||||
public override void Add(Lote t)
|
||||
{
|
||||
t.Producto = (t.Producto.EsPerecedero) ?
|
||||
context.ProductoPercederos.First(x => x.Id == t.Producto.Id) :
|
||||
context.ProductoNoPercederos.First(x => x.Id == t.Producto.Id);
|
||||
context.Lotes.Add(t);
|
||||
Guardar();
|
||||
}
|
||||
|
||||
public override void Del(Lote t)
|
||||
|
||||
Reference in New Issue
Block a user