Files
ClientServerProject/软件系统浏览器模版/Controllers/AccountController.cs
2017-07-21 21:21:36 +08:00

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");
}
}
}