Subversion Repositories SmartDukaan

Rev

Rev 35458 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35458 Rev 37728
Line 79... Line 79...
79
	public ResponseEntity<?> getById(HttpServletRequest request, @RequestParam(name = "id") int id){
79
	public ResponseEntity<?> getById(HttpServletRequest request, @RequestParam(name = "id") int id){
80
		LOGGER.info("requested url : "+request.getRequestURL().toString());
80
		LOGGER.info("requested url : "+request.getRequestURL().toString());
81
		try {
81
		try {
82
			return responseSender.ok(brandRepository.selectById(id));
82
			return responseSender.ok(brandRepository.selectById(id));
83
		}catch (ProfitMandiBusinessException profitMandiBusinessException) {
83
		}catch (ProfitMandiBusinessException profitMandiBusinessException) {
84
			LOGGER.error("ProfitMandi error: ",  profitMandiBusinessException);
84
			LOGGER.warn("ProfitMandi error: ",  profitMandiBusinessException);
85
			return responseSender.badRequest(profitMandiBusinessException);
85
			return responseSender.badRequest(profitMandiBusinessException);
86
		}
86
		}
87
	}
87
	}
88
	
88
	
89
	
89