Added some nullable regions to get rid of compiler warnings and follow best practices
This commit is contained in:
@@ -19,6 +19,7 @@ namespace ScrumTaskboard.Controllers
|
||||
}
|
||||
|
||||
// GET: api/userstories
|
||||
#nullable enable
|
||||
[HttpGet]
|
||||
public async Task<ActionResult<IEnumerable<ScrumUserstory>>> GetUserstory([FromQuery]string? title, [FromQuery]int? statusid, [FromQuery]int? categoryid, [FromQuery]int? createdbyid, [FromQuery]int? projectid, [FromQuery]int? sprintid, [FromQuery]ScrumPrio? priority)
|
||||
{
|
||||
@@ -56,6 +57,7 @@ namespace ScrumTaskboard.Controllers
|
||||
|
||||
return await filtered.ToListAsync();
|
||||
}
|
||||
#nullable disable
|
||||
|
||||
// GET: api/userstories/1
|
||||
[HttpGet("{id}")]
|
||||
|
||||
Reference in New Issue
Block a user