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

            SaveToExcel.CreateDoc(new ExcelInfoClient
            {
                FileName = fileName,
                Title    = title,
                Services = GetOrderServices(order)
            });
            SendMail(email, fileName, title);
        }
示例#2
0
        public void SaveOrdersToExcelFile(ReportBindingModel model)
        {
            string title = "Заказы";

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