Beispiel #1
0
        public void OnGet()
        {
            Users = _userManager.Users.ToList();
            List <Note> Notes = _note.GetAllNotes().Result;

            foreach (Note note in Notes)
            {
                var user = _userManager.FindByIdAsync(note.UserID).Result;
                AVMs.Add(new AdminViewModel()
                {
                    Note     = note,
                    UserName = user.UserName
                });
            }
        }