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

@@ -19,6 +19,7 @@ namespace ScrumTaskboard.Controllers
}
// GET: api/category
#nullable enable
[HttpGet]
public async Task<ActionResult<IEnumerable<ScrumCategory>>> GetCategory([FromQuery]string? title, [FromQuery]int? projectid, [FromQuery] string? color)
{
@@ -40,6 +41,7 @@ namespace ScrumTaskboard.Controllers
return await filtered.ToListAsync();
}
#nullable disable
// GET: api/category/1
[HttpGet("{id}")]