From 13acfdc7da2d2991e1c2b7140a87a59208c1ea44 Mon Sep 17 00:00:00 2001 From: rak Date: Tue, 18 Oct 2022 22:35:19 +1000 Subject: [PATCH] Added Test echo posting2 --- Controllers/TestPosting.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Controllers/TestPosting.cs b/Controllers/TestPosting.cs index dfeaf20..c036eef 100644 --- a/Controllers/TestPosting.cs +++ b/Controllers/TestPosting.cs @@ -7,11 +7,11 @@ namespace NeDvachAPI.Controllers [Route("[controller]")] public class TestPostingController : ControllerBase { - [HttpPost("{text}", Name = "ReceivePost")] - public string ReceivePost(string text) + [HttpPost] + public string Area(int altitude , int height) { //DBchat.SendPost(ReceivedPost); - return text; + return $"Первое значение {altitude} и второе значение {height}"; } } }