예제 #1
0
 public static int Them(SlideShow slideshow)
 {
     try
     {
         object rs = DataProvider.Instance.ExecuteNonQueryWithOutput("@ID", "SlideShow_Them",
             slideshow.ID, slideshow.TieuDe_Vn, slideshow.TieuDe_En, slideshow.TieuDe_Ru, slideshow.HinhAnh, slideshow.MoTa, slideshow.ViTri, slideshow.HienThi, slideshow.Website);
         return Convert.ToInt32(rs);
     }
     catch
     {
         return 0;
     }
 }
예제 #2
0
 public static bool Sua(SlideShow slideshow)
 {
     try
     {
         object rs = DataProvider.Instance.ExecuteNonQuery("SlideShow_Sua",
             slideshow.ID, slideshow.TieuDe_Vn, slideshow.TieuDe_En, slideshow.TieuDe_Ru, slideshow.HinhAnh, slideshow.MoTa, slideshow.ViTri, slideshow.HienThi, slideshow.Website);
         return Convert.ToInt32(rs) > 0;
     }
     catch
     {
         return false;
     }
 }