AccountProfile.Controllers.ProfileController.Show C# (CSharp) Method

Show() public method

public Show ( string username ) : System.Web.Mvc.ViewResult
username string
return System.Web.Mvc.ViewResult
        public ViewResult Show(string username)
        {
            var profile = _profileRepository.Find(username);

            bool hasPermission = User.Identity.Name == username;

            ViewData["hasPermission"] = hasPermission;

            return View(profile);
        }