For some unclear reason I receive:
"Failed to add the product to the cart. Please refresh the page and try one more time."
the filter works fine for the products to be filtered on, but the onces that pass the filter fail. Any idea?
protected IEnumerable<Filter> GetFilters(string controllerNameContext, string actionNameContext)
{
if (IsMatch(controllerNameContext, actionNameContext))
return new List<Filter>() { new Filter(this, FilterScope.Action, 0) };
else
return new List<Filter>();
}
protected IEnumerable<Filter> GetFilters(string controllerNameContext, string actionNameContext)
{
if (IsMatch(controllerNameContext, actionNameContext))
return new List<Filter>() { new Filter(this, FilterScope.Action, 0) };
else
return new List<Filter>();
}
public LeaseProduct GetByPayeeIdProductId(int payeeId, int productId)
{
string key = string.Format(LEASEPRODUCTSERVICE_BY_PAYEEID_PRODUCTID_KEY, payeeId, productId);
return _cacheManager.Get(key, () =>
{
var query = _leaseProductRepository.Table.Where(
x => x.PayeeId == payeeId && x.ProductId == productId).Single();
return query;
});
}