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 1212using Microsoft . Identity . Client ;
1313using System . Net . Http . Headers ;
1414using Microsoft . Graph ;
15+ using System . Net ;
1516
1617namespace TodoListAPI . Controllers
1718{
@@ -66,11 +67,11 @@ public async Task<ActionResult<TodoItem>> GetTodoItem(int id)
6667 return todoItem ;
6768 }
6869 [ HttpGet ( "getallusers" ) ]
69- public async Task < ActionResult < IEnumerable < string > > > GetAllTodoItem ( )
70+ public async Task < ActionResult < IEnumerable < string > > > GetAllUsers ( )
7071 {
7172 HttpContext . VerifyUserHasAnyAcceptedScope ( scopeRequiredByApi ) ;
7273
73- List < string > Users = await CallGraphApiOnBehalfOfUser ( ) ;
74+ List < string > Users = await CallGraphApiOnBehalfOfUser ( ) ;
7475 if ( Users == null )
7576 {
7677 return NotFound ( ) ;
You can’t perform that action at this time.
0 commit comments