Fixed uncapitalized i in Id for all Controllers
This commit is contained in:
@@ -81,7 +81,7 @@ namespace ScrumTaskboard.Controllers
|
||||
public async Task<IActionResult> PutTask(int id, ScrumTask task)
|
||||
{
|
||||
// The task's ID must not be changed
|
||||
if (id != task.id)
|
||||
if (id != task.Id)
|
||||
{
|
||||
return BadRequest();
|
||||
}
|
||||
@@ -118,7 +118,7 @@ namespace ScrumTaskboard.Controllers
|
||||
await _context.SaveChangesAsync();
|
||||
|
||||
// The new task has been created and can be called up using the GetTask method
|
||||
return CreatedAtAction("GetTask", new { id = task.id }, task);
|
||||
return CreatedAtAction("GetTask", new { id = task.Id }, task);
|
||||
}
|
||||
|
||||
// DELETE: api/tasks/5
|
||||
|
||||
Reference in New Issue
Block a user