<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MVCBlogo.NET.BO.Comment>>" %>
<%@ Import Namespace="Spencer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderPage" runat="server">

     <h3>管理评论</h3>
    <p>
        <%= Html.ActionLink("新建博客", "AdminBlogCreate")%>
    </p>
   <%=Html.GridView<MVCBlogo.NET.BO.Comment>(Model,new string[]{"author","body","datecreated","IP"},
                                               new GridViewOption()
                                               {
                                                    EditAction="AdminCommentEdit",
                                                    DeleteAction ="AdminCommentDelete",
                                                    Columns=new string[]{"作者","评论内容","发布日期","IP地址"}
                                                })
   %>

</asp:Content>
