コード例 #1
0
        internal bool DeleteForStore(string bvin, long storeId)
        {
            var item = FindForAllStores(bvin);

            if (item == null)
            {
                return(false);
            }

            // remove from products
            crosses.DeleteForFileId(item.Bvin, storeId);

            var diskFileName = item.Bvin + "_" + item.FileName + ".config";

            DiskStorage.FileVaultRemove(item.StoreId, diskFileName);

            var guid = DataTypeHelper.BvinToGuid(bvin);

            return(Delete(y => y.bvin == guid && y.StoreId == storeId));
        }