delphimvcframework/samples/simplewebapplication/SampleControllerU.pas

33 lines
515 B
ObjectPascal
Raw Normal View History

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