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

@@ -18,6 +18,7 @@ namespace ScrumTaskboard.Controllers
}
// GET: api/status
#nullable enable
[HttpGet]
public async Task<ActionResult<IEnumerable<ScrumStatus>>> GetStatus([FromQuery]string? title)
{
@@ -30,6 +31,7 @@ namespace ScrumTaskboard.Controllers
return await filtered.ToListAsync();
}
#nullable enable
// GET: api/status/1
[HttpGet("{id}")]