// Filtered access: Guest/Admin. public async Task <IActionResult> SingleOccupancy([FromRoute] int resourceId) { await AuthorizeForSingleResource(resourceId); return(Ok(await resService.OccupancyByResource(resourceId))); }