Пример #1
0
        public void SaveOrderServicesToWordFile(string fileName, OrderViewModel order, string email)
        {
            string title = "Список услуг по заказу №" + order.Id;

            SaveToWord.CreateDoc(new WordInfoClient
            {
                FileName = fileName,
                Title    = title,
                Services = GetOrderServices(order)
            });
            SendMail(email, fileName, title);
        }
Пример #2
0
        public void SaveOrdersToWordFile(ReportBindingModel model)
        {
            string title = "Заказы";

            SaveToWord.CreateDoc(new WordInfo
            {
                FileName = model.FileName,
                Title    = title,
                Orders   = GetOrders(model.id),
            });
            SendMail(model.email, model.FileName, title);
        }