36 lines
767 B
C#
36 lines
767 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
|
|
namespace 软件系统浏览器模版.Controllers
|
|
{
|
|
public class AccountController : Controller
|
|
{
|
|
// GET: Account
|
|
public ActionResult Index()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
|
|
// GET: LoginPage
|
|
public ActionResult Login()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
|
|
|
|
//POST 用于系统的账户登录
|
|
// 为了防止“过多发布”攻击,请启用要绑定到的特定属性,有关
|
|
[HttpPost]
|
|
[ValidateAntiForgeryToken]
|
|
public ActionResult Login(FormCollection fc)
|
|
{
|
|
|
|
return RedirectToAction("Index", "Home");
|
|
}
|
|
}
|
|
} |