
(function () {

  
  var injectParams = ['$resource'];
  //return $resource('http://localhost:9092/transactions/:ccId/', {ccId: '@_cardId'},{});
  
  var TransactionsService = function ($resource) {
   
	  var tranService = {
		  		  
		  GetTransactionByCreditCard : function(cardId) {
			  //return $resource('http://localhost:9092/transactions/' + ccId);
			  transactionResource =
				  $resource('http://localhost:9092/transactions/:ccId/', {ccId: '@_cardId'});
			  
			  return transactionResource.query({ccId:cardId}).$promise;
		  }
	  };
	  
	  return tranService;
  }

  TransactionsService.$inject = injectParams;

  angular.module('expenseTracker')
    .factory('transactionsService', TransactionsService);
	
})();

@@ -53,98 +53,8 @@
 '%5D;%0A
-  //return $resource('http://localhost:9092/transactions/:ccId/', %7BccId: '@_cardId'%7D,%7B%7D);%0A
   %0A 
@@ -195,79 +195,8 @@
 ) %7B%0A
-%09%09%09  //return $resource('http://localhost:9092/transactions/' + ccId);%0A
 %09%09%09 

Remove commented-out code