Code
·
49 lines
·
765 bytes
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
49using Microsoft.AspNetCore.Mvc;
namespace VanDerHeijden.JsonBodyProviderTest.Controllers;
[Route("[controller]")]
public class FirstController : ControllerBase
{
[HttpPost("Test")]
public IActionResult Test(
string EventName,
string UserId,
DateTime Timestamp,
int Value,
byte Bite,
double Weight,
decimal Price,
float Height,
List<int> IntList,
Dictionary<string, string> Properties,
bool isConversion,
Guid? campaignId,
char FirstChar,
long Ernie,
short Man,
DateOnly Dater,
TimeOnly Timer)
{
return Ok(new
{
EventName,
UserId,
Timestamp,
Value,
Bite,
Weight,
Price,
Height,
IntList,
Properties,
isConversion,
campaignId,
FirstChar,
Ernie,
Man,
Dater,
Timer
});
}
}