Added some nullable regions to get rid of compiler warnings and follow best practices

This commit is contained in:
2020-06-23 17:43:17 +02:00
parent f7c0dc66db
commit a588148dc9
7 changed files with 23 additions and 9 deletions

View File

@@ -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}")]