una cosa más hecha

This commit is contained in:
2025-01-25 00:20:47 -03:00
parent 2b481e2ae2
commit f750ecc77e
10 changed files with 249 additions and 6 deletions
@@ -0,0 +1,41 @@
using Entidades.Dto;
namespace AlquilaFacil.Builder;
public class VentasDtoBuilder: Builder<VentasDto> {
public VentasDtoBuilder SetId(long id) {
data.Id = id;
return this;
}
public VentasDtoBuilder SetMonto(decimal monto) {
data.Monto = monto;
return this;
}
public VentasDtoBuilder SetDivisa(string divisa) {
data.Divisa = divisa;
return this;
}
public VentasDtoBuilder SetUbicacion(string ubicacion) {
data.Ubicacion = ubicacion;
return this;
}
public VentasDtoBuilder SetNombreVendedor(string nombre) {
data.NombreVendedor = nombre;
return this;
}
public VentasDtoBuilder SetIdVendedor(long idVendedor) {
data.Id = idVendedor;
return this;
}
public VentasDtoBuilder SetNombreComprador(string nombre) {
data.NombreComprador = nombre;
return this;
}
public VentasDtoBuilder SetIdComprador(long Id) {
data.IdComprador = Id;
return this;
}
public VentasDtoBuilder SetEstado(string estado) {
data.Estado = estado;
return this;
}
}