Fix task endpoint

This commit is contained in:
Mark McDowall 2025-11-11 20:15:31 -08:00
parent 4071278183
commit e89d58985a

View file

@ -30,21 +30,6 @@ public ActionResult<List<TaskResource>> GetAll()
.ToList();
}
[HttpGet("{id:int}")]
[Produces("application/json")]
public ActionResult<TaskResource> GetById(int id)
{
var task = _taskManager.GetAll()
.SingleOrDefault(t => t.Id == id);
if (task == null)
{
return NotFound();
}
return ConvertToResource(task);
}
protected override TaskResource? GetResourceById(int id)
{
var task = _taskManager.GetAll()