public EstoquePecasController() { Banco banco = new Banco(); EstoquePecasDAL estoquePecasDAL = new EstoquePecasDAL(banco); _estoquePecasService = new EstoquePecasService(estoquePecasDAL); }
private EstoquePecasController InstanciarCamadas() { Banco banco = new Banco(); EstoquePecasDAL estoquePecasDAL = new EstoquePecasDAL(banco); EstoquePecasService estoquePecasService = new EstoquePecasService(estoquePecasDAL); return(new EstoquePecasController(estoquePecasService)); }
public EstoquePecasService(EstoquePecasDAL estoquePecasDAL) { _estoquePecasDAL = estoquePecasDAL; }