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