//Action public void MakeTheCheckedBill(string path, string course, string pathtosave) { DeepCopier copier = new DeepCopier(); GetDataFromBill(path); GammaMod.GetAll(); foreach (var billposition in bills) { FurcomMod.GetByName(billposition.Name.GeneralName); FurcomIdReceiver IdReceiver = new FurcomIdReceiver(); FurcomModel loc = (FurcomModel)FurcomMod; string id = IdReceiver.GetIdFromFurcomProductDescr(loc.SelectedData[0].Description); CheckerGammaList GetterFromGamma = new CheckerGammaList(); GammaModel loc2 = (GammaModel)GammaMod; GetterFromGamma.FindOfferInGammaBase(id, loc2.SelectedData); offer result = GetterFromGamma.FoundOffer; BillData newbilldata = copier.DeepClone <BillData>(billposition); // это надо проверить decimal targetprice = ConvertRURintoBYN(course, result.Price); ChangeBillDataAmounts(newbilldata, targetprice); OutputBills.Add(newbilldata); } BillFormer former = new BillFormer(); former.FormBill(pathtosave, OutputBills, Raredata); }