// GET: Products public IActionResult Index() { if (ModelState.IsValid) { var model = new UserStoreProductModel(); model.Products = _localService.GetProducts(); model.Stores = _storeService.GetBoughtStores().Where(us => us.is_confirmed && !string.IsNullOrEmpty(us.api_key) && !string.IsNullOrEmpty(us.secret_key)); return(View(model)); } return(View()); }