AccountProfile.Controllers.ProfileController.Show C# (CSharp) 메소드

Show() 공개 메소드

public Show ( string username ) : System.Web.Mvc.ViewResult
username string
리턴 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);
        }