Ejemplo n.º 1
0
        public static void CreateTicketChangeNotification(string userId, int ticketId)
        {
            Developer user = (Developer)userManager.FindById(userId);
            var       ticketChangeNotification = new TicketNotificaiton();

            ticketChangeNotification.User   = user;
            ticketChangeNotification.UserId = userId;
            ticketChangeNotification.Body   = $"Created: {DateTime.Now.ToString()} - there was a change to ticket #{ticketId}.";
        }
Ejemplo n.º 2
0
        public static void CreateAssignedNotification(string userId)
        {
            Developer user = (Developer)userManager.FindById(userId);
            var       assignedNotification = new TicketNotificaiton();

            assignedNotification.User   = user;
            assignedNotification.UserId = userId;
            assignedNotification.Body   = $"Created: {DateTime.Now.ToString()} - {user.UserName} has been assigned a new ticket.";
        }