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); }
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); }
public bool Destroy(object ProductPhotoID) { return(ProductPhoto.Destroy(ProductPhotoID) == 1); }
public bool Delete(object ProductPhotoID) { return(ProductPhoto.Delete(ProductPhotoID) == 1); }