public IActionResult OnPost() { if (ModelState.IsValid) { Property.Result = _sv.Guessing(Property.PlayerNumber, Property.RandComputerNumber); Property.Guesses++; } if (Property.PlayerNumber == Property.RandComputerNumber) { return(RedirectToPage("/Wins")); } return(Page()); }