コード例 #1
0
    protected override void ActionAdminDo()
    {
        string name  = Request["name"];
        string title = Request["title"];


        BannerManager BM     = new BannerManager();
        BannerTBx     banner = new BannerTBx();

        banner.Name    = Request["name"];
        banner.TitleBN = Request["title"];

        banner.Status = 1;
        BM.Add(banner);
        Response.Write(1);
    }
コード例 #2
0
 public int Add(Banner model)
 {
     return(dal.Add(model));
 }