示例#1
0
 public async void PrintUsers()
 {
     foreach (var item in (await userManager.Get()).ToList())
     {
         Console.WriteLine("Id: " + item.UserId + "  Firstname: " + item.Firstname + "  Lastname: " + item.Lastname);
     }
 }
        public async Task <ActionResult> DetailsAdvance(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            User item = await usersManager.Get(id);

            usersManager.GetRoles(item);
            usersManager.GetDatas(item);

            if (item == null)
            {
                return(HttpNotFound());
            }

            return(View(item));
        }