Skip to content

Commit 16e2c06

Browse files
committed
Method Renamed
1 parent 9325fd2 commit 16e2c06

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

4-WebApp-your-API/4-3-AnyOrg/TodoListService/Controllers/TodoListController.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using Microsoft.Identity.Client;
1313
using System.Net.Http.Headers;
1414
using Microsoft.Graph;
15+
using System.Net;
1516

1617
namespace 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();

0 commit comments

Comments
 (0)