//ексель клиент 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); }
//ексель админ public void SaveSpareRequestsToExcellFile(string fileName, string email) { string title = "Заявки"; SaveToExcel.CreateDoc(new ExcelInfo { FileName = fileName, Title = title, SpareRequests = GetSpareRequest() }); SendMail(email, fileName, title); }