public ActionResult OnPost() { authenticatedUser = UserManager.GetUserByEmail(User.Identity.Name); if (ModelState.IsValid) { newScoreCard.Course = Course; newScoreCard.Date = DayofGame; newScoreCard.GolfRounds = rounds; newScoreCard.Player = (Player)authenticatedUser; confirmation = RequestDirector.AddPlayerScores(newScoreCard); if (confirmation) { Alert = $"Player Scores are added!"; } } return(Page()); }