Beispiel #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);
        }
Beispiel #2
0
        //ексель админ
        public void SaveSpareRequestsToExcellFile(string fileName, string email)
        {
            string title = "Заявки";

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