File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
4-WebApp-your-API/4-3-AnyOrg/TodoListService/Controllers Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 12
12
using Microsoft . Identity . Client ;
13
13
using System . Net . Http . Headers ;
14
14
using Microsoft . Graph ;
15
+ using System . Net ;
15
16
16
17
namespace TodoListAPI . Controllers
17
18
{
@@ -66,11 +67,11 @@ public async Task<ActionResult<TodoItem>> GetTodoItem(int id)
66
67
return todoItem ;
67
68
}
68
69
[ HttpGet ( "getallusers" ) ]
69
- public async Task < ActionResult < IEnumerable < string > > > GetAllTodoItem ( )
70
+ public async Task < ActionResult < IEnumerable < string > > > GetAllUsers ( )
70
71
{
71
72
HttpContext . VerifyUserHasAnyAcceptedScope ( scopeRequiredByApi ) ;
72
73
73
- List < string > Users = await CallGraphApiOnBehalfOfUser ( ) ;
74
+ List < string > Users = await CallGraphApiOnBehalfOfUser ( ) ;
74
75
if ( Users == null )
75
76
{
76
77
return NotFound ( ) ;
You can’t perform that action at this time.
0 commit comments