// Filtered access: Guest/Admin. public async Task <IActionResult> List() { var models = IsAdmin ? await resService.GetList() : await resService.ListActive(); var dtos = mappService.Map <IEnumerable <ResourceBriefDto> >(models); return(Ok(dtos)); }
// Filtered access: Guest/Admin. public async Task <IActionResult> List() { var models = IsAdmin ? await resService.GetList() : await resService.ListActive(); var dtos = mappService.Map <IEnumerable <ResourceBriefDto> >(models); return(Ok(dtos)); }