Abbozzato controller x DbMaint in MON

This commit is contained in:
Samuele E. Locatelli
2020-11-16 14:23:52 +01:00
parent 02a167db23
commit 52933477b7
4 changed files with 31 additions and 79 deletions
+12 -8
View File
@@ -9,6 +9,13 @@ namespace MP_MON.Controllers
{
public class DbTaskController : ApiController
{
#region Public Methods
// DELETE: api/DbTask/5
public void Delete(int id)
{
}
// GET: api/DbTask
public IEnumerable<string> Get()
{
@@ -18,22 +25,19 @@ namespace MP_MON.Controllers
// GET: api/DbTask/5
public string Get(int id)
{
return "value";
return $"DbMaint requested: {id} - {DateTime.Now}";
}
// POST: api/DbTask
public void Post([FromBody]string value)
public void Post([FromBody] string value)
{
}
// PUT: api/DbTask/5
public void Put(int id, [FromBody]string value)
public void Put(int id, [FromBody] string value)
{
}
// DELETE: api/DbTask/5
public void Delete(int id)
{
}
#endregion Public Methods
}
}
}