Commit 84738d82 authored by pborate's avatar pborate

Updated ecm-wish-list.service.ts

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@175959 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b5407092
......@@ -46,6 +46,8 @@ export class EcmWishListService {
let headers = new Headers( { 'Content-Type': 'application/json' });
let options = new RequestOptions( { headers: headers });
let siteCode = localStorage.getItem('SITE_CODE');
itemCode=itemCode.trim();
console.log('inside ecm-wishlist ::::['+itemCode+"]");
return this.http.post( this.hostUrlService.hostUrl+this.wishListUrl + '/' + siteCode + '/wishlist' +'/' + itemCode , options)
.map( (res) => this.extractData(res) );
......@@ -55,7 +57,7 @@ export class EcmWishListService {
let headers = new Headers( { 'Content-Type': 'application/json' });
let options = new RequestOptions( { headers: headers });
let siteCode = localStorage.getItem('SITE_CODE');
itemCode=itemCode.trim();
return this.http.delete( this.hostUrlService.hostUrl+this.wishListUrl + '/' + siteCode + '/wishlist' + '/' + itemCode, options)
.map( (res) => this.extractData(res) );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment