Beispiel #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));
        }
Beispiel #2
0
 public ManageAdvertisement()
 {
     bnr = new Banner();
     vid = new Video();
 }
Beispiel #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));
        }