-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathTestcarlotsControllerPropertyEndpoints.dbl
48 lines (41 loc) · 1.69 KB
/
TestcarlotsControllerPropertyEndpoints.dbl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
;;*****************************************************************************
;;
;; Title: TestcarlotsControllerPropertyEndpoints.dbl
;;
;; Description: Adds individual property endpoints to TestcarlotsController.
;;
;;*****************************************************************************
;; WARNING: GENERATED CODE!
;; This file was generated by CodeGen. Avoid editing the file if possible.
;; Any changes you make will be lost of the file is re-generated.
;;*****************************************************************************
import Microsoft.AspNetCore.OData.Routing.Controllers
import Microsoft.AspNetCore.OData.Routing.Attributes
import Microsoft.AspNetCore.OData.Query
import Microsoft.AspNetCore.OData.Results
import Microsoft.AspNetCore.OData.Formatter
import Microsoft.AspNetCore.Http
import Microsoft.AspNetCore.Mvc
namespace Services.Controllers
public partial class TestcarlotsController
{HttpGet("Testcarlots({key})/Name")}
{Produces("application/json")}
{ProducesResponseType(StatusCodes.Status200OK)}
{ProducesResponseType(StatusCodes.Status404NotFound)}
;;; <summary>
;;; Get the Name property of a single Testcarlot, by primary key.
;;; </summary>
;;; <param name="key">Car lot name</param>
;;; <returns>
;;; Returns a string containing the value of the requested property.
;;;</returns>
public method GetName, @IActionResult
required in key, int
proc
data result = _DbContext.Testcarlots.Find(key)
if (result==^null)
mreturn NotFound()
mreturn OK(result.Name)
endmethod
endclass
endnamespace