public FacturasBO(string pConnection, string pId) { FacturasEntity pFacturas = new FacturasEntity(); pFacturas.id = pId; try { this.FillEntity(FacturasDAL.GetSingle(pConnection, pFacturas)); } catch (Exception e) { this.FillEntity(); } }
public static FacturasBO GetSingle(string pConnection, FacturasEntity pFacturas) { pFacturas = FacturasDAL.GetSingle(pConnection, pFacturas); return(new FacturasBO(pFacturas)); }