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

            SaveToExcel.CreateDoc(new ExcelInfoAvto
            {
                FileName = fileName,
                Title    = title,
                Cars     = GetOrderCars(order)
            });
            SendMail(email, fileName, title);
        }
Пример #2
0
        //ексель админ
        public void SaveDetailRequestsToExcellFile(string fileName, string email)
        {
            string title = "Заявки";

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