public ViewResult Show(string username) { var profile = _profileRepository.Find(username); bool hasPermission = User.Identity.Name == username; ViewData["hasPermission"] = hasPermission; return View(profile); }