public static string PutUTBSupplierOrder(Order order, bool isAlternative, decimal minimalPrice) { var endFolderName = archivePath + @"Auctions\UTB\" + order.Auction.Date.ToShortDateString() + @"\" + order.Auction.Number.Replace("/", "_") + @"\"; if (!Directory.Exists(endFolderName)) { Directory.CreateDirectory(endFolderName); } System.IO.File.Copy(utbSupplierOrderTemplateFileName, endFolderName + "Заявка на участие от " + order.Auction.SupplierOrders[0].Name.Replace("\"", "'") + ".docx", true); DataBaseClient.CreateProcuratory(order, minimalPrice); return(endFolderName + "Заявка на участие от " + order.Auction.SupplierOrders[0].Name.Replace("\"", "'") + ".docx"); }