示例#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);
        }
示例#2
0
        //ворд админ
        public void SaveSpareRequestsToWordlFile(string fileName, string email)
        {
            string title = "Заявки";

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