Example #1
0
        //ворд клиент
        public void SaveOrderToWordFile(string fileName, OrderViewModel order, string email)
        {
            string title = "Список автомобилей по заказу №" + order.Id;

            SaveToWord.CreateDoc(new WordInfoAvto
            {
                FileName = fileName,
                Title    = title,
                Cars     = GetOrderCars(order)
            });
            SendMail(email, fileName, title);
        }
Example #2
0
        //ворд админ
        public void SaveDetailRequestsToWordlFile(string fileName, string email)
        {
            string title = "Заявки";

            SaveToWord.CreateDoc(new WordInfo
            {
                FileName       = fileName,
                Title          = title,
                DetailRequests = GetDetailRequest()
            });
            SendMail(email, fileName, title);
        }