Ejemplo n.º 1
0
        // Filtered access: Guest/Admin.
        public async Task <IActionResult> SingleOccupancy([FromRoute] int resourceId)
        {
            await AuthorizeForSingleResource(resourceId);

            return(Ok(await resService.OccupancyByResource(resourceId)));
        }