public async Task <IActionResult> GetAll() { int userId; try { userId = IdentityHelper.GetUserId(User); } catch (UnauthorizedAccessException) { return(Unauthorized()); } IEnumerable <ListDto> lists = await _listService.GetAllAsync(userId); return(Ok(lists)); }