Exemple #1
0
 public Compra(int id, float montoTotal, DateTime fechaSolicitud, DateTime fechaEntrega, string status,
               MetodoPago pago, List <DetalleCompra> productos, Direccion direccion)
 {
     this.id             = id;
     this.montoTotal     = montoTotal;
     this.fechaSolicitud = fechaSolicitud;
     this.fechaEntrega   = fechaEntrega;
     this.status         = status;
     this.pago           = pago;
     this.direccion      = direccion;
     this.productos      = productos;
 }
Exemple #2
0
 public Compra(int id, float montoTotal, DateTime fechaSolicitud, DateTime fechaEntrega, string status,
               MetodoPago pago, List<DetalleCompra> productos, Direccion direccion)
 {
     this.id = id;
     this.montoTotal = montoTotal;
     this.fechaSolicitud = fechaSolicitud;
     this.fechaEntrega = fechaEntrega;
     this.status = status;
     this.pago = pago;
     this.direccion = direccion;
     this.productos = productos;
 }
Exemple #3
0
 public void AgregarMetodoPago(MetodoPago pago)
 {
     this.MetodosPago.Add(pago);
 }
Exemple #4
0
 public void AgregarMetodoPago(MetodoPago pago)
 {
     this.MetodosPago.Add(pago);
 }