comments out test surface controllers for now

This commit is contained in:
Shannon Deminick
2012-09-26 13:44:23 +07:00
parent 05add96294
commit 53a3ad24e6

View File

@@ -6,35 +6,35 @@ using Umbraco.Core;
namespace Umbraco.Web.Mvc
{
[PluginController("MyTestSurfaceController")]
public class TestSurfaceController : SurfaceController
{
public ActionResult Index()
{
return View();
//return Content("<html><body>hello</body></html>");
}
//[PluginController("MyTestSurfaceController")]
//public class TestSurfaceController : SurfaceController
//{
// public ActionResult Index()
// {
// return View();
// //return Content("<html><body>hello</body></html>");
// }
public ActionResult PostVals(string name)
{
ModelState.AddModelError("name", "bad name!");
return CurrentUmbracoPage();
}
}
// public ActionResult PostVals(string name)
// {
// ModelState.AddModelError("name", "bad name!");
// return CurrentUmbracoPage();
// }
//}
public class LocalSurfaceController : SurfaceController
{
public ActionResult Index()
{
return View();
}
//public class LocalSurfaceController : SurfaceController
//{
// public ActionResult Index()
// {
// return View();
// }
public ActionResult PostVals([Bind(Prefix = "blah")]string name)
{
ModelState.AddModelError("name", "you suck!");
return this.RedirectToCurrentUmbracoPage();
}
}
// public ActionResult PostVals([Bind(Prefix = "blah")]string name)
// {
// ModelState.AddModelError("name", "you suck!");
// return this.RedirectToCurrentUmbracoPage();
// }
//}
/// <summary>
/// The base controller that all Presentation Add-in controllers should inherit from