Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/* ------------------------------------------------------------------------------
<auto-generated>
This file was generated by Sitefinity CLI v1.1.0.1
</auto-generated>
------------------------------------------------------------------------------ */
using SitefinityWebApp.Mvc.Models;
using System.Web.Mvc;
using Telerik.Sitefinity.Mvc;
using Telerik.Sitefinity.Personalization;
namespace SitefinityWebApp.Mvc.Controllers
{
[ControllerToolboxItem(Name = "ExampleWidget_MVC", Title = "ExampleWidget", SectionName = "CustomWidgets")]
public class ExampleWidgetController : Controller, IPersonalizable
{
// GET: ExampleWidget
public ActionResult Index()
{
var model = new ExampleWidgetModel();
model.Message = this.Message;
return View(model);
}
protected override void HandleUnknownAction(string actionName)
{
this.ActionInvoker.InvokeAction(this.ControllerContext, "Index");
}
public string Message { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment