Exemplo n.º 1
0
 public void ActiveDeactivePhotoGallery(int PhotoGalleryID)
 {
     using (AustraliaDAL.DataSet1TableAdapters.tblPhotoGalleryTableAdapter _ObjTA = new AustraliaDAL.DataSet1TableAdapters.tblPhotoGalleryTableAdapter())
     {
         _ObjTA.ActiveDeactivePhotoGallery(PhotoGalleryID);
     }
 }
Exemplo n.º 2
0
        public DataTable GetPhotoGalleryAll(int PhotoGalleryID, int AlbumID)
        {
            DataTable dt = new DataTable();

            using (AustraliaDAL.DataSet1TableAdapters.tblPhotoGalleryTableAdapter _ObjTA = new AustraliaDAL.DataSet1TableAdapters.tblPhotoGalleryTableAdapter())
            {
                dt = _ObjTA.GetPhotoGalleryAll(PhotoGalleryID, AlbumID);
            }
            return(dt);
        }
Exemplo n.º 3
0
        public int AddEditPhotoGallery(int PhotoGalleryID, string Title, string ImageUrl, int AlbumID)
        {
            int       pageval;
            DataTable dt = new DataTable();

            using (AustraliaDAL.DataSet1TableAdapters.tblPhotoGalleryTableAdapter _ObjTA = new AustraliaDAL.DataSet1TableAdapters.tblPhotoGalleryTableAdapter())
            {
                dt = _ObjTA.AddEditPhotoGallery(PhotoGalleryID, Title, ImageUrl, AlbumID);
            }
            pageval = Convert.ToInt32(dt.Rows[0]["PhotoGalleryID"].ToString());
            return(pageval);
        }