public async Task<ActionResult> ViewUserActivationRequest(string userId) { var targetUser = await UserManager.FindByIdAsync(userId); if (targetUser == null) return HttpNotFound(); if (targetUser.Activated != ActivationStatus.Pending) return new HttpStatusCodeResult(HttpStatusCode.Gone); var canChange = await Can(AdminActivity.ActivateUser, targetUser); if (!canChange) return new HttpUnauthorizedResult(); var model = new UserManagementViewModel { ConfirmActivtionOfUser = userId }; return View("Index", model); }
public ActionResult ViewActivityLog() { var model = new UserManagementViewModel(); return View(model); }
public ActionResult Index() { var model = new UserManagementViewModel(); return View(model); }