diff --git a/IceCreamShop/IceCreamShop/MainForm.cs b/IceCreamShop/IceCreamShop/MainForm.cs index d6f6d8b..3512117 100644 --- a/IceCreamShop/IceCreamShop/MainForm.cs +++ b/IceCreamShop/IceCreamShop/MainForm.cs @@ -189,7 +189,7 @@ Program.ServiceProvider?.GetService(typeof(OrderForm)); using var dialog = new SaveFileDialog { Filter = "docx|*.docx" }; if (dialog.ShowDialog() == DialogResult.OK) { - _reportLogic.SaveComponentsToWordFile(new ReportBindingModel + _reportLogic.SaveIceCreamToWordFile(new ReportBindingModel { FileName = dialog.FileName }); diff --git a/IceCreamShop/IceCreamShopBusinessLogic/BusinessLogic/ReportLogic.cs b/IceCreamShop/IceCreamShopBusinessLogic/BusinessLogic/ReportLogic.cs index 6f47dbf..08903f4 100644 --- a/IceCreamShop/IceCreamShopBusinessLogic/BusinessLogic/ReportLogic.cs +++ b/IceCreamShop/IceCreamShopBusinessLogic/BusinessLogic/ReportLogic.cs @@ -74,7 +74,7 @@ namespace IceCreamShopBusinessLogic.BusinessLogic }) .ToList(); } - public void SaveIceCreamsToWordFile(ReportBindingModel model) + public void SaveIceCreamToWordFile(ReportBindingModel model) { _saveToWord.CreateDoc(new WordInfo {