Update gestione segnaposto x conf prod

This commit is contained in:
Samuele E. Locatelli
2020-11-18 10:12:29 +01:00
parent 4b9a4d6b2f
commit d970b704a9
7 changed files with 28 additions and 9 deletions
+9 -2
View File
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Web.Http;
namespace MP_MON.Controllers
@@ -19,7 +20,7 @@ namespace MP_MON.Controllers
// GET: api/DbTask
public IEnumerable<string> Get()
{
return new string[] { "value1", "value2" };
return new string[] { "Refresh", "value2" };
}
// GET: api/DbTask/5
@@ -29,8 +30,14 @@ namespace MP_MON.Controllers
}
// POST: api/DbTask
public void Post([FromBody] string value)
public string Post([FromBody] List<string> names)
{
string answ = "";
foreach (var item in names)
{
answ += $"{item} | ";
}
return answ;
}
// PUT: api/DbTask/5