This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ------------------------------------------------------------------------------ | |
<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