62,046
社区成员
发帖
与我相关
我的任务
分享
private YfWeb.Models.PLUSEntities db = new PLUSEntities();
//
// GET: /Admin/
[HttpGet]
public ActionResult Index()
{
return View(db.COMPANY.ToList());
}
@model YfWeb.Models.COMPANY
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layoutadmin.cshtml";
}
<h2>Index</h2>
@using (Html.BeginForm("index")) {
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
<fieldset>
<legend>公司基本资料维护</legend>
@Html.HiddenFor(model => model.ID)
<div class="editor-label">
@Html.LabelFor(model => model.CompanyName)
</div>