public async Task <IActionResult> AdminInfo(Guid id) { var model = new AdminInformationModel(); await model.LoadByIdAsync(id); return(View(model)); }
public IHttpActionResult GetAdminInfo() { AdminInformationModel model = new AdminInformationModel() { BlockedUsers = new List <User>() }; foreach (var applicationUser in UserManager.Users.Where(u => u.LockoutEnabled).Where(p => p.LockoutEndDateUtc == null)) { model.BlockedUsers.Add(_userMgr.ReadUser(applicationUser.Email)); } return(Ok(model)); }