public IActionResult Submit(Suggestions Suggestion) { if (ModelState.IsValid) { //checking model state Temp.AddSuggestion(Suggestion); return(View("Confirmation", Suggestion)); } return(View()); }
public IActionResult Submit(Suggestions Suggestion) { if (ModelState.IsValid) { //checking model state Temp.AddSuggestion(Suggestion); return(View("Confirmation", Suggestion)); } return(View()); }