Example #1
0
        public void Insert(byte[] ThumbNailPhoto, string ThumbnailPhotoFileName, byte[] LargePhoto, string LargePhotoFileName, DateTime ModifiedDate)
        {
            ProductPhoto item = new ProductPhoto();

            item.ThumbNailPhoto = ThumbNailPhoto;

            item.ThumbnailPhotoFileName = ThumbnailPhotoFileName;

            item.LargePhoto = LargePhoto;

            item.LargePhotoFileName = LargePhotoFileName;

            item.ModifiedDate = ModifiedDate;


            item.Save(UserName);
        }
Example #2
0
        public void Update(int ProductPhotoID, byte[] ThumbNailPhoto, string ThumbnailPhotoFileName, byte[] LargePhoto, string LargePhotoFileName, DateTime ModifiedDate)
        {
            ProductPhoto item = new ProductPhoto();

            item.ProductPhotoID = ProductPhotoID;

            item.ThumbNailPhoto = ThumbNailPhoto;

            item.ThumbnailPhotoFileName = ThumbnailPhotoFileName;

            item.LargePhoto = LargePhoto;

            item.LargePhotoFileName = LargePhotoFileName;

            item.ModifiedDate = ModifiedDate;

            item.MarkOld();
            item.Save(UserName);
        }
Example #3
0
 public bool Destroy(object ProductPhotoID)
 {
     return(ProductPhoto.Destroy(ProductPhotoID) == 1);
 }
Example #4
0
 public bool Delete(object ProductPhotoID)
 {
     return(ProductPhoto.Delete(ProductPhotoID) == 1);
 }