Skip to content

Instantly share code, notes, and snippets.

@sitefinitySDK
Last active November 30, 2022 14:39
SF_10.1, SF_10.2, SF_11.0, SF_11.1, SF_11.2, SF_12.0, SF_12.1, SF_12.2, SF_13.0, SF_13.1, SF_13.2, SF_13.3, SF_14.0, SF_14.1, SF_14.2, SF_14.3 - https://docs.sitefinity.com/for-developers-create-the-controller
using SitefinityWebApp.Mvc.Models;
using System.Collections.Generic;
using System.ComponentModel;
using System.Web.Mvc;
using Telerik.Sitefinity.Mvc;
namespace SitefinityWebApp.Mvc.Controllers
{
public class FeatureController : Controller
{
public ActionResult Index()
{
var listOfFeatures = new List<Feature>();
listOfFeatures.Add(new Feature() { Name = "Pure MVC mode", Version = 5.1 });
listOfFeatures.Add(new Feature() { Name = "Classic MVC mode", Version = 5.1 });
listOfFeatures.Add(new Feature() { Name = "Hybrid MVC mode", Version = 5.1 });
return View(listOfFeatures);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment