public static bool DeleteStoreMarketingImages(int imageId, int storeId) { StoreMarketingImagesInfo storeMarketingImages = MarketingImagesHelper.GetStoreMarketingImages(storeId, imageId); if (storeMarketingImages != null) { return(new MarketingImagesDao().DeleteStoreMarketingImages(imageId, storeId)); } return(false); }
public static bool UpdateStoreMarketingImages(StoreMarketingImagesInfo model) { StoreMarketingImagesInfo storeMarketingImages = MarketingImagesHelper.GetStoreMarketingImages(model.StoreId, model.ImageId); if (storeMarketingImages != null) { storeMarketingImages.ProductIds = model.ProductIds; return(new MarketingImagesDao().UpdateStoreMarketingImages(storeMarketingImages)); } return(new MarketingImagesDao().AddStoreMarketingImages(model)); }