示例#1
0
        public int Add(Banner model)
        {
            string sql = "insert into Banner(Banner_Id,Banner_Img,Banner_Title,Banner_Link,Banner_DeleteId,Banner_WebMenuId,Banner_CreateTime,Banner_UpdateTime) values(@Banner_Id,@Banner_Img,@Banner_Title,@Banner_Link,@Banner_DeleteId,@Banner_WebMenuId,@Banner_CreateTime,@Banner_UpdateTime)";

            return(SqlHelper <Banner> .ExceuteNonQuery(sql, model));
        }
示例#2
0
 public ManageAdvertisement()
 {
     bnr = new Banner();
     vid = new Video();
 }
示例#3
0
        public int Edit(Banner model)
        {
            string sql = "update Banner set Banner_Title=@Banner_Title,Banner_Img=@Banner_Img,Banner_Link=@Banner_Link,Banner_WebMenuId=@Banner_WebMenuId,Banner_UpdateTime=@Banner_UpdateTime where Banner_Id=@Banner_Id";

            return(SqlHelper <Banner> .ExceuteNonQuery(sql, model));
        }