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); }
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); }