Fixed uncapitalized i in Id for all Controllers

This commit is contained in:
2020-07-14 18:10:57 +02:00
parent 959c43ca1e
commit f0cf54513f
7 changed files with 14 additions and 14 deletions

View File

@@ -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