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