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/sprint
#nullable enable
[HttpGet]
public async Task<ActionResult<IEnumerable<ScrumUser>>> GetUser([FromQuery]string? name)
{
@@ -29,6 +30,7 @@ namespace ScrumTaskboard.Controllers
return await filtered.ToListAsync();
}
#nullable disable
// GET: api/sprint/5
[HttpGet("{id}")]