diff --git a/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs b/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs index 57869ac..4ae744c 100644 --- a/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs +++ b/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs @@ -58,6 +58,36 @@ namespace PolyclinicWebAppSuretor.Controllers return View(); } + [HttpGet] + [HttpPost] + public IActionResult Login() + { + if (HttpContext.Request.Method == "POST") + { + // - + return View(); + } + else + { + return View(); + } + } + + [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 3c0d84c..2ab062a 100644 --- a/Polyclinic/PolyclinicWebAppSuretor/SiteMenuItems.cs +++ b/Polyclinic/PolyclinicWebAppSuretor/SiteMenuItems.cs @@ -7,11 +7,13 @@ public static (string Url, string Title) Procedures = ("Procedures", "Процедуры"); 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 + Index, Medicaments, Procedures, Recipes, Users, ListCoursesByProcedures, Login, Register }; } } diff --git a/Polyclinic/PolyclinicWebAppSuretor/Views/Home/Login.cshtml b/Polyclinic/PolyclinicWebAppSuretor/Views/Home/Login.cshtml new file mode 100644 index 0000000..c7e4e0c --- /dev/null +++ b/Polyclinic/PolyclinicWebAppSuretor/Views/Home/Login.cshtml @@ -0,0 +1,25 @@ +@{ + ViewBag.SelectedSiteMenuItem = SiteMenuItems.Login; +} +