public List <Product> GetProductsByActive(bool active = true) { List <Product> products = null; try { products = _productAccessor.SelectProductByActive(active); } catch (Exception ex) { throw new ApplicationException("Product List unavailable.", ex); } return(products); }