There are two methods in the Home controller:
public ViewResult FirstView () { return View(); } //... public ViewResult SecondView() { if(условие){ return View("FirstView"); } return View(); } It is assumed that if when trying to access the SecondView view a certain condition is met (validation), then the transition to the FirstSecond view occurs. The code works, BUT in the address bar of the browser after performing if we see localhost / Home / SecondView. Is it possible to make the address line to localhost / Home / FirstView to change when executing if?