diff --git a/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs b/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs index 7b5cec8..f192880 100644 --- a/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs +++ b/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs @@ -17,9 +17,18 @@ namespace PolyclinicWebAppImplementer.Controllers { return View(); } + [HttpGet] + [HttpPost] public IActionResult Course() { - return View(); + if (HttpContext.Request.Method == "POST") + { + return Redirect("~/Home/Courses"); + } + else + { + return View(); + } } public IActionResult Courses() { @@ -27,7 +36,14 @@ namespace PolyclinicWebAppImplementer.Controllers } public IActionResult Diagnose() { - return View(); + if (HttpContext.Request.Method == "POST") + { + return Redirect("~/Home/Diagnoses"); + } + else + { + return View(); + } } public IActionResult Diagnoses() @@ -36,7 +52,14 @@ namespace PolyclinicWebAppImplementer.Controllers } public IActionResult Symptom() { - return View(); + if (HttpContext.Request.Method == "POST") + { + return Redirect("~/Home/Symptomes"); + } + else + { + return View(); + } } public IActionResult Symptomes() { diff --git a/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Course.cshtml b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Course.cshtml index edea68c..d308999 100644 --- a/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Course.cshtml +++ b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Course.cshtml @@ -4,7 +4,7 @@ @{ ViewBag.SelectedSiteMenuItem = SiteMenuItems.Course; } -
+
Количество дней:
@@ -21,16 +21,16 @@
Рецепт: