Skip to content

Commit

Permalink
delete some 'await'
Browse files Browse the repository at this point in the history
  • Loading branch information
arichika committed Aug 21, 2014
1 parent d676b81 commit ebc6ac5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Src/SampleWebSite/Controllers/UserAdminController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private set
// GET: /Users/
public async Task<ActionResult> Index()
{
return View(UserManager.Users.ToList());
return View(UserManager.Users);
}

//
Expand All @@ -78,7 +78,7 @@ public async Task<ActionResult> Details(string id)
public async Task<ActionResult> Create()
{
//Get the list of Roles
ViewBag.RoleId = new SelectList(await RoleManager.Roles.ToListAsync(), "Name", "Name");
ViewBag.RoleId = new SelectList(RoleManager.Roles, "Name", "Name");
return View();
}

Expand All @@ -101,7 +101,7 @@ public async Task<ActionResult> Create(RegisterViewModel userViewModel, params s
if (!result.Succeeded)
{
ModelState.AddModelError("", result.Errors.First());
ViewBag.RoleId = new SelectList(await RoleManager.Roles.ToListAsync(), "Name", "Name");
ViewBag.RoleId = new SelectList(RoleManager.Roles, "Name", "Name");
return View();
}
}
Expand Down

0 comments on commit ebc6ac5

Please sign in to comment.