Subversion Repositories SmartDukaan

Rev

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

Rev 22889 Rev 22892
Line 112... Line 112...
112
	WalletService walletService;
112
	WalletService walletService;
113
 
113
 
114
	@Autowired
114
	@Autowired
115
	PolicyNumberGenerationSequenceRepository policyNumberGenerationSequenceRepository;
115
	PolicyNumberGenerationSequenceRepository policyNumberGenerationSequenceRepository;
116
 
116
 
117
	@Autowired
-
 
118
 
-
 
119
	@RequestMapping(value = ProfitMandiConstants.URL_DAMAGE_INSURANCE, method = RequestMethod.POST)
117
	@RequestMapping(value = ProfitMandiConstants.URL_DAMAGE_INSURANCE, method = RequestMethod.POST)
120
	public ResponseEntity<?> createTheftProtection(HttpServletRequest request,
118
	public ResponseEntity<?> createTheftProtection(HttpServletRequest request,
121
			@RequestBody GadgetCopsDocumentInsuranceModel insuranceModel) throws Throwable {
119
			@RequestBody GadgetCopsDocumentInsuranceModel insuranceModel) throws Throwable {
122
		if (insuranceModel.validate()) {
120
		if (insuranceModel.validate()) {
123
			int userId = (int) request.getAttribute("userId");
121
			int userId = (int) request.getAttribute("userId");