public void ClassifyAndExportDefines(IList <DistributorCat> distributorCats) { var currentClassification = BaseConstants.LoadInfo <ClassificationDefine>(BaseConstants.ClassificationDefinePath); foreach (var item in distributorCats) { if (!currentClassification.Distributors.Any(x => x.IncludeText(item.Distributor))) { currentClassification.Distributors.Add(item.Distributor); } } BusinessFunc.ExportItemToFile(currentClassification, BaseConstants.ClassificationDefinePath); }
public void SaveItemToJson() { BusinessFunc.ExportItemToFile(Item, _FilePath); }