diff --git a/软件系统浏览器模版/Controllers/AccountController.cs b/软件系统浏览器模版/Controllers/AccountController.cs
index 2c16fd8..97508ff 100644
--- a/软件系统浏览器模版/Controllers/AccountController.cs
+++ b/软件系统浏览器模版/Controllers/AccountController.cs
@@ -252,5 +252,18 @@ namespace 软件系统浏览器模版.Controllers
}
}
+
+
+ //GET
+ ///
+ /// 注册新的账户界面
+ ///
+ [HttpGet]
+ [AuthorizeAdmin]
+ public ActionResult RegisterAccount()
+ {
+ return View();
+ }
+
}
}
\ No newline at end of file
diff --git a/软件系统浏览器模版/Controllers/HomeController.cs b/软件系统浏览器模版/Controllers/HomeController.cs
index 35ac8e4..5df8f46 100644
--- a/软件系统浏览器模版/Controllers/HomeController.cs
+++ b/软件系统浏览器模版/Controllers/HomeController.cs
@@ -236,16 +236,6 @@ namespace 软件系统浏览器模版.Controllers
- //GET
- ///
- /// 注册新的账户界面
- ///
- [HttpGet]
- [AuthorizeAdmin]
- public ActionResult RegisterAccount()
- {
- return View();
- }
}
}
\ No newline at end of file
diff --git a/软件系统浏览器模版/Views/Account/RegisterAccount.cshtml b/软件系统浏览器模版/Views/Account/RegisterAccount.cshtml
new file mode 100644
index 0000000..8119fc0
--- /dev/null
+++ b/软件系统浏览器模版/Views/Account/RegisterAccount.cshtml
@@ -0,0 +1,86 @@
+
+@{
+ ViewBag.Title = "注册新的账户";
+ Layout = "~/Views/Shared/_Layout.cshtml";
+}
+
+
+
+@section scripts
+{
+
+}
+
+
+
+
+ @{ string updateId = Guid.NewGuid().ToString();}
+ @using (Ajax.BeginForm("RegisterAccount", null, new AjaxOptions { HttpMethod = "Post", UpdateTargetId = updateId, InsertionMode = InsertionMode.Replace },
+ new { @class = "form-horizontal" }))
+ {
+
+ }
+
+
+
+
diff --git a/软件系统浏览器模版/Views/Home/RegisterAccount.cshtml b/软件系统浏览器模版/Views/Home/RegisterAccount.cshtml
deleted file mode 100644
index 2a0c64f..0000000
--- a/软件系统浏览器模版/Views/Home/RegisterAccount.cshtml
+++ /dev/null
@@ -1,55 +0,0 @@
-
-@{
- ViewBag.Title = "注册新的账户";
- Layout = "~/Views/Shared/_Layout.cshtml";
-}
-
-
-
-@section scripts
-{
-
-}
-
-
-
-
- @{ string updateId = Guid.NewGuid().ToString();}
- @using (Ajax.BeginForm("RegisterAccount", null, new AjaxOptions { HttpMethod = "Post", UpdateTargetId = updateId, InsertionMode = InsertionMode.Replace },
- new { @class = "form-horizontal" }))
- {
-
- }
-
-
-
-
diff --git a/软件系统浏览器模版/Views/Shared/_Layout.cshtml b/软件系统浏览器模版/Views/Shared/_Layout.cshtml
index cd42353..b6a267d 100644
--- a/软件系统浏览器模版/Views/Shared/_Layout.cshtml
+++ b/软件系统浏览器模版/Views/Shared/_Layout.cshtml
@@ -28,7 +28,7 @@