private readonly ProductsBL _objProd = new ProductsBL();
readonly ProductModel _model = new ProductModel();
public ActionResult Index()
{
var allproducts = _objProd.GetAllProductDetails();
if (allproducts != null)
{
_model.AllProducts = allproducts;
//All Features
var featlist = new List<string>();
foreach (var products in allproducts)
{
featlist.Add(products.Features);
}
// _model.FeaturesList = featlist;
_model.FeaturesList = featlist;
}
return View(_model);
}
How to use html decode function??