Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ActionResult FormRequest(PersonData personData)
- {
- if (HttpContext.Request.HttpMethod == "GET")
- {
- return View("Questionery");//если get, перересовываю страницу
- }
- if (HttpContext.Request.HttpMethod == "POST")
- {
- return View("FormRequest",personData);/*если post вывожу дынные */
- }
- else
- {
- return HttpNotFound();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement