/// <summary> /// Initializes a new instance of the <see cref="LandingController"/> class. /// </summary> public LandingController( IWebConfigContainer webConfigContainer) { _webConfigContainer = webConfigContainer ?? throw new ArgumentNullException(nameof(webConfigContainer)); // initialize this by creating a new/empty instance this.LandingPgViewModel = new LandingPgViewModel(); }
public ActionResult IndexPost(LandingPgViewModel landingPgViewModel) { if (!ModelState.IsValid) { // go back and try again //return View( ) } return(View("Error")); }