public JsonResult GetList() { Product[] products = productsData.GetAll().ToArray(); // Remove html-codes from model description. // not using in the current time. Product[] productsVM = products.Select(item => new Product() { Description = CustomHtmlHelpers.RemoveHTMLTags(item.Description), Id = item.Id, Image = item.Image, Popular = item.Popular, Price = item.Price, Title = item.Title } ).ToArray(); return(Json(products)); }