public ActionResult EditProfile() { if (!ProfileHelper.UserHasProfile(ProfileHelper.GetIdentity)) { return RedirectToAction("CreateProfile", "Player"); } var profile = ProfileHelper.GetPlayerProfile(ProfileHelper.GetIdentity); if (profile == null) profile = new Player { DisplayName = string.Empty }; return PartialView(profile); }