Ejemplo n.º 1
0
        public virtual MvcMailMessage OrderSubmitted(CustomerModel customer, OrderModel order, IEnumerable <OrderLineModel> orderLines)
        {
            ViewData.Model = new OrderSubmittedViewModel {
                Customer   = customer,
                Order      = order,
                OrderLines = orderLines
            };

            AfeMessagingHelpers.SendMessage(customer.CellPhone, Resources.Views_Notification_OrderSubmitted_Message, customer.GetDisplayName(), order.AccessToken);

            return(Populate(message => {
                message.ViewName = Views.Notification.OrderSubmitted_cshtml;
                message.Subject = Resources.Views_Notification_OrderSubmitted_Subject;
                message.To.Add(customer.Email);
            }));
        }
Ejemplo n.º 2
0
        public virtual MvcMailMessage PasswordReset(CustomerModel customer)
        {
            ViewData.Model = customer;

            AfeMessagingHelpers.SendMessage(customer.CellPhone, Resources.Views_Notification_PasswordReset_Message, customer.GetDisplayName());

            return(Populate(message => {
                message.ViewName = Views.Notification.PasswordReset_cshtml;
                message.Subject = Resources.Views_Notification_PasswordReset_Subject;
                message.To.Add(customer.Email);
            }));
        }