//Inject the DataAccessRepository using Construction Injection public TrxNotificationHeaderController(IDataAccessRepository <trxNotificationHeader, int> r, TrxNotificationHeaderRep repHeader , MstRekananRep repRekanan, TrxNotificationDetailRep repDetail, TrxNotificationContentRep repContent) { _repository = r; _repHeader = repHeader; _repDetail = repDetail; _repContent = repContent; _repRekanan = repRekanan; }
//Inject the DataAccessRepository using Construction Injection public TrxNotificationDetailController(IDataAccessRepository <trxNotificationDetail, int> r, TrxNotificationDetailRep repo) { _repository = r; _repo = repo; }