diff --git a/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs b/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs index c41e4f6..4ae744c 100644 --- a/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs +++ b/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs @@ -73,6 +73,21 @@ namespace PolyclinicWebAppSuretor.Controllers } } + [HttpGet] + [HttpPost] + public IActionResult Register() + { + if (HttpContext.Request.Method == "POST") + { + // - + return View(); + } + else + { + return View(); + } + } + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public IActionResult Error() { diff --git a/Polyclinic/PolyclinicWebAppSuretor/SiteMenuItems.cs b/Polyclinic/PolyclinicWebAppSuretor/SiteMenuItems.cs index 3d34e39..2ab062a 100644 --- a/Polyclinic/PolyclinicWebAppSuretor/SiteMenuItems.cs +++ b/Polyclinic/PolyclinicWebAppSuretor/SiteMenuItems.cs @@ -8,11 +8,12 @@ public static (string Url, string Title) Recipes = ("Recipes", "Рецепты"); public static (string Url, string Title) Users = ("Users", "Пользователи"); public static (string Url, string Title) Login = ("Login", "Вход"); + public static (string Url, string Title) Register = ("Register", "Регистрация"); public static (string Url, string Title) ListCoursesByProcedures = ("ListCoursesByProcedures", "Список курсов приема препаратов"); public static List<(string Url, string Title)> MenuItemsOrder = new List<(string Url, string Title)> { - Index, Medicaments, Procedures, Recipes, Users, ListCoursesByProcedures, Login + Index, Medicaments, Procedures, Recipes, Users, ListCoursesByProcedures, Login, Register }; } } diff --git a/Polyclinic/PolyclinicWebAppSuretor/Views/Home/Register.cshtml b/Polyclinic/PolyclinicWebAppSuretor/Views/Home/Register.cshtml new file mode 100644 index 0000000..21c8dbb --- /dev/null +++ b/Polyclinic/PolyclinicWebAppSuretor/Views/Home/Register.cshtml @@ -0,0 +1,29 @@ +@{ + ViewBag.SelectedSiteMenuItem = SiteMenuItems.Register; +} +
+
+

Регистрация

+
+ + +
+
+ + +
+
+ + +
+ +
+
\ No newline at end of file