Commit Graph

7 Commits

Author SHA1 Message Date
Daniele Teti
66f7fcb8ac Added MVCNameCaseDefault 2024-06-19 14:25:04 +02:00
Daniele Teti
fcee922c2a Functional Actions Sample Clean 2024-05-23 10:03:30 +02:00
Daniele Teti
af0984e050 Added
function OKResponse(const Body: TObject): IMVCResponse; overload;
    function OKResponse: IMVCResponse; overload;
    function NotFoundResponse(const Body: TObject): IMVCResponse; overload;
    function NotFoundResponse: IMVCResponse; overload;
    function NoContentResponse: IMVCResponse;
    function UnauthorizedResponse: IMVCResponse;
    function BadRequestResponse: IMVCResponse; overload;
    function BadRequestResponse(const Error: TObject): IMVCResponse; overload;
    function CreatedResponse(const Location: string = ''; const Body: TObject = nil): IMVCResponse;
    function AcceptedResponse(const Location: string = ''; const Body: TObject = nil): IMVCResponse;
    function ConflictResult: IMVCResponse;
    function InternalServerErrorResponse: IMVCResponse;
2024-04-03 16:11:38 +02:00
Daniele Teti
cc5789d56e Now "NoRouteFound" error returns the correct content-type 2024-02-21 14:41:25 +01:00
Daniele Teti
30a247281f Breaking Change! TMVCActiveRecordController uses (and requires) TMVCActiveRecordMiddleware - it doesn't require a TFDConnection on constructor 2024-01-20 10:37:34 +01:00
Daniele Teti
6590e508c7 Samples Cleaning 2023-11-01 23:13:17 +01:00
Daniele Teti
52a5840bd5 Updated sample to show TryGetNamedSQLQuery 2023-10-17 18:08:30 +02:00