Subversion Repositories SmartDukaan

Rev

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

Rev 31493 Rev 31495
Line 235... Line 235...
235
	private BrandCategoryRepository brandCategoryRepository;
235
	private BrandCategoryRepository brandCategoryRepository;
236
 
236
 
237
	@RequestMapping(value = "/addBrands", method = RequestMethod.POST)
237
	@RequestMapping(value = "/addBrands", method = RequestMethod.POST)
238
	public String addBrands(HttpServletRequest request, Model model) throws Exception {
238
	public String addBrands(HttpServletRequest request, Model model) throws Exception {
239
 
239
 
240
		List<DBObject> mobileBrands = mongoClient.getAllBrandsToDisplay(3);
240
		List<DBObject> mobileBrands = mongoClient.getAllBrandsToDisplay(6);
241
		for (DBObject mobileBrand : mobileBrands) {
241
		for (DBObject mobileBrand : mobileBrands) {
242
			String brandName = (String) mobileBrand.get("name");
242
			String brandName = (String) mobileBrand.get("name");
243
			// Brand brand = brandsRepository.selectByBrand(brandName);
243
			// Brand brand = brandsRepository.selectByBrand(brandName);
244
 
244
 
245
			BrandCatalog brand = new BrandCatalog();
245
			BrandCatalog brand = new BrandCatalog();