delphimvcframework/samples/simplewebapplication/SampleControllerU.pas
daniele.teti 1ac4ebba47
2013-11-14 01:09:22 +00:00

33 lines
515 B
ObjectPascal

unit SampleControllerU;
interface
uses
MVCFramework, MVCFramework.Commons;
type
[MVCPath('/')]
TSampleController = class(TMVCController)
public
[MVCHTTPMethod([httpPost])]
[MVCPath('/customers')]
[MVCProduces('text/html')]
procedure CreateCustomer(CTX: TWebContext);
end;
implementation
uses
System.SysUtils;
{ TRoutingSampleController }
procedure TSampleController.CreateCustomer(CTX: TWebContext);
begin
LoadView('customer_show');
end;
end.