|
by Paul Stovell via Paul Stovell on 11/12/2009 10:11:38 AM
Back to: Magellan Home
As an MVC framework, controllers are the most prominent object in Magellan. At their simplest, controllers are implemented as classes, and actions are implemented as methods on the class. Actions on a controller must be public methods, and must return ActionResult objects. Here is an example:
public class CustomerController : Controller
{
public ActionResult Index()
{
Model = Customers.GetAll();
return Page();
}
public A
... [ read more ]
|
|