private async Task SendOrderEmailToSellers(Order order, List <Seller> sellers, Personnel personnel, Entity.Mobile mobile) { //Send Email to customer foreach (var seller in sellers) { var customerPersonnelEmail = new OrderCreatedEmail() { CustomerFullName = personnel.FullName, Subject = "Mumbile : Order Requested Successfully", TemplateName = "SellerOrderCreated", ToAddress = new List <string>() { seller.Email }, ProductName = mobile.Name, CustomerMobileNumber = personnel.Mobile, OrderId = order.OrderId }; await _personnelEmailBusinessService.SendOrderCreatedMail(customerPersonnelEmail); } }
private async Task SendOrderEmailToCustomer(Order order, Personnel personnel, Entity.Mobile mobile) { //Send Email to customer var customerPersonnelEmail = new OrderCreatedEmail() { CustomerFullName = personnel.FullName, Subject = "Mumbile : Order Requested Successfully", TemplateName = "CustomerOrderCreated", ToAddress = new List <string>() { personnel.Email }, OrderId = order.OrderId, ProductName = mobile.Name }; await _personnelEmailBusinessService.SendOrderCreatedMail(customerPersonnelEmail); }