Subversion Repositories SmartDukaan

Rev

Rev 3126 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3126 Rev 5214
Line 14... Line 14...
14
	public ProductNotificationController(){
14
	public ProductNotificationController(){
15
		super();	
15
		super();	
16
	}
16
	}
17
	
17
	
18
	 public String create() {
18
	 public String create() {
19
		emailId = this.request.getParameter("emailId");
-
 
20
		itemId = Long.parseLong(this.request.getParameter("itemId"));
-
 
21
 
-
 
22
        CatalogClient catalogClientService;
-
 
23
		try {
19
		try {
-
 
20
			emailId = this.request.getParameter("emailId");
-
 
21
			itemId = Long.parseLong(this.request.getParameter("itemId"));
-
 
22
 
-
 
23
	        CatalogClient catalogClientService;
24
			catalogClientService = new CatalogClient();
24
			catalogClientService = new CatalogClient();
25
			in.shop2020.model.v1.catalog.InventoryService.Client client = catalogClientService.getClient();
25
			in.shop2020.model.v1.catalog.InventoryService.Client client = catalogClientService.getClient();
26
			client.addProductNotification(itemId, emailId);
26
			client.addProductNotification(itemId, emailId);
27
		} catch (Exception e) {
27
		} catch (Exception e) {
28
			log.error("Exception while adding product notification for item: " + itemId + " and email: " + emailId, e);
28
			log.error("Exception while adding product notification for item: " + itemId + " and email: " + emailId, e);