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 EstoquePecasController(EstoquePecasService estoquePecasService)
 {
     _estoquePecasService = estoquePecasService;
 }