Esempio n. 1
0
        static void Main(string[] args)
        {
            string ticketResponse = "Hi John, you can fix that issue buying one of your star products for 1000 usd, or you can die";
            string alertMessage   = "Hey john, your suscription to life ends in 30 days";
            User   JohnDoe        = new User {
                Id = 36393, Email = "*****@*****.**"
            };
            var responseToTicket  = new SupportTicketResponse();
            var alertSuscriptions = new SuscriptionAlert();

            responseToTicket.NotifyUser(JohnDoe, ticketResponse);
            alertSuscriptions.NotifyUser(JohnDoe, alertMessage);
        }
Esempio n. 2
0
 public void PostTicketResponse(int ticketId, SupportTicketResponse supportTicketResponse)
 {
     this.context.SupportTicketResponses.Add(supportTicketResponse);
 }