Added some nullable regions to get rid of compiler warnings and follow best practices
This commit is contained in:
@@ -16,9 +16,10 @@ namespace ScrumTaskboard.Controllers
|
||||
public SprintsController(TaskContext context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
|
||||
// GET: api/sprint
|
||||
}
|
||||
|
||||
// GET: api/sprint
|
||||
#nullable enable
|
||||
[HttpGet]
|
||||
public async Task<ActionResult<IEnumerable<ScrumSprint>>> GetSprint([FromQuery]string? title, [FromQuery]int? projectid, [FromQuery]DateTime? startDate, [FromQuery]DateTime? endDate)
|
||||
{
|
||||
@@ -43,6 +44,7 @@ namespace ScrumTaskboard.Controllers
|
||||
|
||||
return await filtered.ToListAsync();
|
||||
}
|
||||
#nullable disable
|
||||
|
||||
// GET: api/sprint/5
|
||||
[HttpGet("{id}")]
|
||||
|
||||
Reference in New Issue
Block a user