Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ActionResult Form(string name, string surname, string email, string sex, string[] hobbies)
- {
- if (HttpContext.Request.HttpMethod == "GET")
- {
- return View();
- }
- else if (HttpContext.Request.HttpMethod == "POST")
- {
- var formResult = new FormResult(name,surname,email,sex,hobbies);
- return View("FormResult",formResult);
- }
- return HttpNotFound();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement