//ворд клиент public void SaveOrderToWordFile(string fileName, OrderViewModel order, string email) { string title = "Список автомобилей по заказу №" + order.Id; SaveToWord.CreateDoc(new WordInfoAvto { FileName = fileName, Title = title, Cars = GetOrderCars(order) }); SendMail(email, fileName, title); }
//ворд админ public void SaveSpareRequestsToWordlFile(string fileName, string email) { string title = "Заявки"; SaveToWord.CreateDoc(new WordInfo { FileName = fileName, Title = title, SpareRequests = GetSpareRequest() }); SendMail(email, fileName, title); }