//Inject the DataAccessRepository using Construction Injection public TrxBranchOfficeController(IDataAccessRepository <trxBranchOffice, int> r, TrxBranchOfficeRep repBranch, MstWilayahRep rTWilayah, MstKecamatanRep rTKecamatan) { _repository = r; _repBranch = repBranch; _repWilayah = rTWilayah; _repKecamatan = rTKecamatan; }
//Inject the DataAccessRepository using Construction Injection public TrxBranchOfficeHeaderController(IDataAccessRepository <trxBranchOfficeHeader, int> r, TrxBranchOfficeHeaderRep repBranchHeader, MstWilayahRep rTWilayah, MstKecamatanRep rTKecamatan, TrxBranchOfficeRep repBranch) { _repository = r; _repBranchHeader = repBranchHeader; _repWilayah = rTWilayah; _repKecamatan = rTKecamatan; _repBranch = repBranch; }